Have you considered using an enum or a boolean instead of 2 separate implementations for some methods?
For instance
public static func variance(values: [Double], type: DataType) -> Double? with DataType.Sample or something
or
public static func variance(values: [Double], isSample: Bool) -> Double?
and checking for it in the implementation instead of copy-pasting 2 very similar implementations.