JuliaStats / StatsBase.jl

Basic statistics for Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend the Options for `closed` in `fit()` to Have `:both` and `:neither`

RoyiAvital opened this issue · comments

commented

Currently the fit() method for histogram is accepting :left and :right for the close parameter.

It will be useful, in data processing (Binning / Discretization) to also have the options :both and :neither which will allow defining all the options for the interval from a to b:

  1. :left - [a, b).
  2. :right - (a, b].
  3. :both - [a, b].
  4. :neither - (a, b).

Could you describe the use case in more detail? Does other software support this?