quantileOrNull
internal fun <T : Comparable<T>> Sequence<Any>.quantileOrNull(p: Double, type: KType, skipNaN: Boolean, method: QuantileEstimationMethod<T, *>, name: String = "quantile"): Any?
Returns the p-quantile: the k'th q-quantile, where p = k/q.
When method is a QuantileEstimationMethod.Selecting method, this can be a sequence with any self-comparable type. The returned value will be selected from the sequence.
Otherwise, when method is a QuantileEstimationMethod.Interpolating method, this can only be a sequence with primitive number types. The returned value will be Double.
Nulls are not allowed. If NaN is among the values, it will be returned.