Gaussian
public enum Gaussian
Gaussian distribution
-
Returns a SSProbDistParams struct containing mean, variance, kurtosis and skewness of the Gaussian distribution.
Throws
SSSwiftyStatsError if df <= 0Declaration
Swift
public static func para<FPT>(mean m: FPT, standardDeviation s: FPT) -> SSProbDistParams<FPT>? where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
m
Mean
sd
Standard deviation
-
Returns the CDF of a Gaussian distribution
Throws
SSSwiftyStatsError if sd <= 0.0Declaration
Swift
public static func cdf<FPT>(x: FPT, mean m: FPT, standardDeviation sd: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
x
x
m
Mean
sd
Standard deviation
-
Returns the CDF of a Gaussian distribution
Throws
SSSwiftyStatsError if v <= 0.0Declaration
Swift
public static func cdf<FPT>(x: FPT, mean m: FPT, variance v: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
x
x
m
Mean
v
Variance
-
Returns the PDF of a Gaussian distribution
Throws
SSSwiftyStatsError if sd <= 0.0Declaration
Swift
public static func pdf<FPT>(x: FPT, mean m: FPT, standardDeviation sd: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
m
Mean
sd
Standard deviation
-
Returns the PDF of a Gaussian distribution
Throws
SSSwiftyStatsError if v <= 0.0Declaration
Swift
public static func pdf<FPT>(x: FPT, mean m: FPT, variance v: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
x
x
m
Mean
v
Variance
-
Returns the quantile function of a Gaussian distribution
Throws
SSSwiftyStatsError if sd <= 0.0Declaration
Swift
public static func quantile<FPT>(p: FPT, mean m: FPT, standardDeviation sd: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
p
p
m
Mean
sd
Standard deviation
-
Returns the quantile function of a Gaussian distribution
Throws
SSSwiftyStatsError if v <= 0.0Declaration
Swift
public static func quantile<FPT>(p: FPT, mean m: FPT, variance v: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
p
p
m
Mean
v
Variance