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