Exponential
public enum Exponential
Exponential distribution
-
Returns a SSProbDistParams struct containing mean, variance, kurtosis and skewness of the Exponential distribution.
Throws
SSSwiftyStatsError if l <= 0Declaration
Swift
public static func para<FPT>(lambda l: FPT) throws -> SSProbDistParams<FPT> where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
l
Lambda
-
Returns the pdf of the Exponential distribution.
Throws
SSSwiftyStatsError if l <= 0Declaration
Swift
public static func pdf<FPT>(x: FPT, lambda l: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
x
x
l
Lambda
-
Returns the cdf of the Exponential distribution.
Throws
SSSwiftyStatsError if l <= 0Declaration
Swift
public static func cdf<FPT>(x: FPT, lambda l: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
x
x
l
Lambda
-
Returns the quantile of the Exponential distribution.
Throws
SSSwiftyStatsError if l <= 0 || p < 0 || p > 1Declaration
Swift
public static func quantile<FPT>(p: FPT, lambda l: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
p
p
l
Lambda