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