Function vector_bin_size_scott (o2scl)

O2scl : Function List

template<class vec_t>
double o2scl::vector_bin_size_scott(size_t n, const vec_t &v)

Optimal bin size using Scott’s method for the first n elements.

template<class vec_t>
double o2scl::vector_bin_size_scott(const vec_t &v)

Optimal bin size using Scott’s method.

This function computes the optimal bin size \( \Delta_b \) of a histogram using the expression

\[ \Delta_b = \frac{3.5 \sigma}{n^{1/3}} \]

From [Scott79].

Note

If n is less than or equal to 1, this function returns 0.0 without calling the error handler.