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