FRatio
public enum FRatio
F Ratio distribution
-
Returns a SSProbDistParams struct containing mean, variance, kurtosis and skewness of the F ratio distribution.
Throws
SSSwiftyStatsError if df1 <= 0 and/or df2 <= 0Declaration
Swift
public static func para<FPT>(numeratorDF df1: FPT, denominatorDF df2: FPT) throws -> SSProbDistParams<FPT> where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
df1
numerator degrees of freedom
df2
denominator degrees of freedom
-
Returns the pdf of the F-ratio distribution.
Throws
SSSwiftyStatsError if df1 <= 0 and/or df2 <= 0Declaration
Swift
public static func pdf<FPT>(f: FPT, numeratorDF df1: FPT, denominatorDF df2: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
f
f-value
df1
numerator degrees of freedom
df2
denominator degrees of freedom
-
Returns the cdf of the F-ratio distribution. (http://mathworld.wolfram.com/F-Distribution.html)
Throws
SSSwiftyStatsError if df1 <= 0 and/or df2 <= 0Declaration
Swift
public static func cdf<FPT>(f: FPT, numeratorDF df1: FPT, denominatorDF df2: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
f
f-value
df1
numerator degrees of freedom
df2
denominator degrees of freedom
-
Returns the quantile function of the F-ratio distribution.
Throws
SSSwiftyStatsError if df1 <= 0 and/or df2 <= 0 and/or p < 0 and/or p > 1Declaration
Swift
public static func quantile<FPT>(p: FPT, numeratorDF df1: FPT, denominatorDF df2: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
Parameters
p
p
df1
numerator degrees of freedom
df2
denominator degrees of freedom