pub struct Cumulative { /* private fields */ }
Implementations§
Source§impl Cumulative
impl Cumulative
Sourcepub fn enabled(&mut self, enabled: bool) -> &mut Self
pub fn enabled(&mut self, enabled: bool) -> &mut Self
If true, display the cumulative distribution by summing the binned values. Use the direction
and centralbin
attributes to tune the accumulation method. Note: in this mode, the density histnorm
settings behave the same as their equivalents without density: ** and density both rise to the number of data points, and probability and probability density both rise to the number of sample points.
default: false
Sourcepub fn direction(&mut self, direction: Direction) -> &mut Self
pub fn direction(&mut self, direction: Direction) -> &mut Self
Only applies if cumulative is enabled. If increasing (default) we sum all prior bins, so the result increases from left to right. If decreasing we sum later bins so the result decreases from left to right.
default: increasing
Sourcepub fn currentbin(&mut self, currentbin: Currentbin) -> &mut Self
pub fn currentbin(&mut self, currentbin: Currentbin) -> &mut Self
Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. include is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. exclude makes the opposite half-bin bias, and half removes it.
default: include