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 Δb of a histogram using the expression

Δb=3.5σn1/3

From [Scott79].

Note

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