Classes

The following classes are available globally.

  • Defines a structure holding multiple SSExamine objects: Each column contains an SSExamine object.

    Each COL represents a single SSExamine object. The structure of the dataframe is like a two-dimensional table:

    With N = sampleSize:

    <          COL[0]      COL[1]     ...  COL[columns - 1] >
    tags       tags[0]     tags[1]    ...  tags[columns - 1]
    cnames     cnames[0    cnames[1]  ...  cnames[columns - 1]
    ROW0       data[0][0]  data[0][1] ...  data[0][columns - 1]
    ROW1       data[1][0]  data[1][1] ...  data[1][columns - 1]
    ...        ..........  .......... ...  ....................
    ROWN       data[N][0]  data[N][1] ...  data[N][columns - 1]
    
    See more

    Declaration

    Swift

    public class SSDataFrame<SSElement, FPT> : NSObject, NSCopying, Codable, NSMutableCopying, SSDataFrameContainer where SSElement : Comparable, SSElement : Decodable, SSElement : Encodable, SSElement : Hashable, FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
  • SSExamine This class contains all the data that you want to evaluate. SSExamine expects data that corresponds to the Hashable, Comparable and Codable protocols. Which statistics are available depends on the type of data. For nominal data, for example, an average will not be meaningful and will therefore not be calculated. If a certain statistical measure is not available, the result will be nil. It is therefore important that you check all results for this.

    SSExamine was primarily developed with Objective-C and had in particular the requirement to create frequency tables for the entered data and to update these tables whenever data was added or removed. Internally, the data is therefore stored in a kind of frequency table. If, for example, the element “A” occurs a 100 times in the data set to be evaluated, the element is not stored 100 times, but only once. At the same time, a reference to the frequency of thi element is saved.

    If elements are added to an SSExamine instance, the order of “arrival” is also registered. This makes it possible to reconstruct the “original data” from an SSExamine instance.

    Important

    • SSElement = The Type of data to be processed.
    • FPT = The type of emitted statistics. Must conform to SSFloatingPoint
    See more

    Declaration

    Swift

    public class SSExamine<SSElement, FPT> : NSObject, SSExamineContainer, NSCopying, Codable where SSElement : Comparable, SSElement : Decodable, SSElement : Encodable, SSElement : Hashable, FPT : Decodable, FPT : Encodable, FPT : SSFloatingPoint
  • Custom error class

    See more

    Declaration

    Swift

    public class SSSwiftyStatsError : NSError, LocalizedError