class_docstr: Laplace distribution.
  
  Parameters
  ----------
  mean : float or array of float (1D or 2D)
      mean of the distribution
  scale : float or array of float (1D or 2D), must be positive
      scale parameter of the distribution, same as standard deviation / sqrt(2)
  index : pd.Index, optional, default = RangeIndex
  columns : pd.Index, optional, default = RangeIndex
  
  Example
  -------
  >>> from sktime.proba.laplace import Laplace
  
  >>> n = Laplace(mu=[[0, 1], [2, 3], [4, 5]], scale=1)
class_docstr_tok: ["Laplace","distribution",".","Parameters","--","--","--","--","--","mean",":","float","or","array","of","float","(","1D","or","2D",")","mean","of","the","distribution","scale",":","float","or","array","of","float","(","1D","or","2D",")",",","must","be","positive","scale","parameter","of","the","distribution",",","same","as","standard","deviation","\/","sqrt","(","2",")","index",":","pd.Index",",","optional",",","default","=","RangeIndex","columns",":","pd.Index",",","optional",",","default","=","RangeIndex","Example","--","--","--","-",">",">",">","from","sktime.proba.laplace","import","Laplace",">",">",">","n","=","Laplace","(","mu=","[","[","0",",","1","]",",","[","2",",","3","]",",","[","4",",","5","]","]",",","scale=1",")"]
docstr: Cumulative distribution function.
docstr_tok: ["Cumulative","distribution","function","."]
code: def cdf(self, x):
      """Cumulative distribution function."""
      d = self.loc[x.index, x.columns]
      sgn_arr = np.sign(x.values - d.mu)
      exp_arr = np.exp(-np.abs((x.values - d.mu) / d.scale))
      cdf_arr = 0.5 + 0.5 * sgn_arr * (1 - exp_arr)
      return pd.DataFrame(cdf_arr, index=x.index, columns=x.columns)
  
file_path: sktime/sktime/proba/laplace.py
imports: import numpy
  import pandas
  from sktime.proba.base import BaseDistribution
label_desc: Use image node_id 7 for calling the Laplace obj's underlying member method code with example usage: obj.cdf(x) and returns: pd