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 COL ... COL[columns - 1] > tags tags tags ... tags[columns - 1] cnames cnames[0 cnames ... cnames[columns - 1] ROW0 data data ... data[columns - 1] ROW1 data data ... data[columns - 1] ... .......... .......... ... .................... ROWN data[N] data[N] ... data[N][columns - 1]
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
Codableprotocols. 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.
SSElement= The Type of data to be processed.
FPT= The type of emitted statistics. Must conform to SSFloatingPoint
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 classSee more
public class SSSwiftyStatsError : NSError, LocalizedError