LogNormal
public enum LogNormal
Log normal distribution
-
Returns a SSProbDistParams struct containing mean, variance, kurtosis and skewness of the Log Normal distribution.
Throws
SSSwiftyStatsError if v <= 0Declaration
Swift
public static func para<FPT>(mean: FPT, variance v: FPT) throws -> SSProbDistParams<FPT> where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
mean
mean
variance
variance
-
Returns the cdf of the Logarithmic Normal distribution
Throws
SSSwiftyStatsError if v <= 0Declaration
Swift
public static func pdf<FPT>(x: FPT, mean: FPT, variance v: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
x
x
mean
mean
variance
variance
-
Returns the pdf of the Logarithmic Normal distribution
Throws
SSSwiftyStatsError if v <= 0Declaration
Swift
public static func cdf<FPT>(x: FPT, mean: FPT, variance v: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
x
x
mean
mean
variance
variance
-
Returns the pdf of the Logarithmic Normal distribution
Throws
SSSwiftyStatsError if v <= 0 and/or p < 0 and/or p > 1Declaration
Swift
public static func quantile<FPT>(p: FPT, mean: FPT, variance v: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
p
p
mean
mean
variance
variance