Structures

The following structures are available globally.

  • Common Statistical Functions

    This struct is used as a namespace to separate the stats functions in SwiftStats.

    In general, the functions here do not throw exceptions but nil values can be returned. For example, to calculate the standard deviation of a sample requires at least two data points. If the array that is passed to sd() does not have at least two values then nil is returned.

    Functions here are often generic in that they work for a range of types (for example, the same function is called to calculate the mean of Int8, Int32, Int64, or Int arrays). Separate implementations can be found for BinaryInteger and BinaryFloatingPoint protocols.

    See more

    Declaration

    Swift

    public struct Common