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