ExtremeValue

public enum ExtremeValue

Extreme value distribution

  • Returns a SSProbDistParams struct containing mean, variance, kurtosis and skewness of the Extrem Value distribution.

    Throws

    SSSwiftyStatsError if b <= 0

    Declaration

    Swift

    public static func para<FPT>(location a: FPT, scale b: FPT) throws -> SSProbDistParams<FPT> where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint

    Parameters

    a

    location

    b

    scale

  • Returns the pdf of the Extrem Value distribution.

    Throws

    SSSwiftyStatsError if b <= 0

    Declaration

    Swift

    public static func pdf<FPT>(x: FPT, location a: FPT, scale b: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint

    Parameters

    a

    location

    b

    scale

    x

    x

  • Returns the cdf of the Extrem Value distribution.

    Throws

    SSSwiftyStatsError if b <= 0

    Declaration

    Swift

    public static func cdf<FPT>(x: FPT, location a: FPT, scale b: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint

    Parameters

    a

    location

    b

    scale

    x

    x

  • Returns the p-quantile of the Extrem Value distribution.

    Throws

    SSSwiftyStatsError if b <= 0

    Declaration

    Swift

    public static func quantile<FPT>(p: FPT, location a: FPT, scale b: FPT) throws -> FPT where FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint

    Parameters

    a

    location

    b

    scale

    p

    p