-
Committer:
Antoine ELIAS
-
Author(s):
Samuel GOUGEON
-
Date:
2020-02-19 13:58:38 UTC
-
Revision ID:
git-v1:907fc7c0b62b7dfa82e7cc841814ed421c32ad42
histc() reforged
* BC 100 % ensured with all preexisting syntaxes
* syntaxes of histplot() reforged will be aligned with histc() ones.
BC will be 100% ensured as well (+ fixing the bugs)
* histc() unit tests: ~400 tests added.
* Help page rewritten, render. in PDF. Please remove it before merging
* Input data:
- extension to sparses, complex numbers, texts, and polynomials
- Data becomes the first input argument (Matlab-like). Back-compatibility ensured.
- %inf and -%inf values are now accepted. They yielded an error.
- In ranging mode, %nan values are now properly filtered out.
* Binning:
- Specification becomes the second input argument. Back-compatibility ensured.
- input bins become optional: automatic binning modes are now available:
- polynomials, texts: (discrete) categorial bins generated from data
- numbers: sqrt (default), freediac, sturges methods are now available.
- "discrete" categorial mode added, for all types of input data.
- Numbers: a fixed bins width can now be specified
- Numbers and texts: marginal bins can now be specified with -%inf and %inf
or with "" and "~~" on both histogram wings.
* Histogram scales:
- boolean "normalization" option replaced. Back-compatibility fully ensured.
- "counts" (default) and "countsNorm" options added for all input data types
"density" and "densityNorm" options added for data numbers in ranging mode.
- Management of special values (jokers) added: Nan, Inf, zeros in sparse, ""
- are excluded from the continuous histogram
- For each joker, an option can be used to take its counts into
account for normalized scales
* Results:
- Bins indices of data are now returned in 4th position. Back-compatibility ensured.
- Counts of jokers are now returned:
* integers: [leftout, rightout] (range) or [out] (discrete)
* decimal or complex numbers, full or sparse:
range: [leftout, rightout, zeros, nan, inf]
discrete: [out, 0, zeros, nan, inf]
* polynomials: [out, 0, 0, nan, inf]
* texts: range: [leftout, rightout, ""]; discrete: [out, 0, ""]
- Actual bins values or edges are now returned.
Change-Id: Ia9ef2f4bcefab81c5a5852610136daa56900d0fc