pub struct Quantile { /* fields omitted */ }
Estimate the p-quantile of a sequence of numbers ("population").
The algorithm uses constant space but does not provide any upper bound on
the error. For algorithms that use growing space with bounded error, see
the quantiles
crate. They are
recommended over this algorithm for small samples.
Create a new p-quantile estimator.
Panics if p
is not between 0 and 1.
Return the value of p
for this p-quantile.
Estimate the p-quantile of the population.
Returns 0 for an empty sample.
Determine whether the sample is empty.
Add an observation sampled from the population.
Estimate the statistic of the population.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Create a new median estimator.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
The error type produced by a failed conversion.
Convert the subject into an exactly equivalent representation.
Approximate the subject with the default scheme.
Approximate the subject with a specific scheme.
Approximate the subject to a given type with the default scheme.
Approximate the subject to a given type with a specific scheme.
Convert the subject to a given type.
Attempt to convert the subject to a given type.
Attempt a value conversion of the subject to a given type.
The error type produced by a failed conversion.
Convert the given value into an exactly equivalent representation.
The error type produced by a failed conversion.
Convert the subject into an approximately equivalent representation.
The error type produced by a failed conversion.
Convert the given value into an approximately equivalent representation.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The error type produced by a failed conversion.
Convert the given value into the subject type.
The error type produced by a failed conversion.
Convert the subject into the destination type.