pub struct ResidualPlot { /* private fields */ }Expand description
A residual plot as a drawable series (coordinate space (f64, f64) =
(fitted, residual)).
Implementations§
Source§impl ResidualPlot
impl ResidualPlot
Sourcepub fn from_residuals(
fitted: &[f64],
residuals: &[f64],
) -> Result<Self, StatsError>
pub fn from_residuals( fitted: &[f64], residuals: &[f64], ) -> Result<Self, StatsError>
Build from fitted (predicted) values and their residuals.
Sourcepub fn from_predictions(
predicted: &[f64],
actual: &[f64],
) -> Result<Self, StatsError>
pub fn from_predictions( predicted: &[f64], actual: &[f64], ) -> Result<Self, StatsError>
Build from predicted and actual values, computing residuals as
actual - predicted internally.
Sourcepub fn marker_radius(self, radius: u32) -> Self
pub fn marker_radius(self, radius: u32) -> Self
Set the scatter marker radius in pixels.
Trait Implementations§
Source§impl Clone for ResidualPlot
impl Clone for ResidualPlot
Source§fn clone(&self) -> ResidualPlot
fn clone(&self) -> ResidualPlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResidualPlot
impl Debug for ResidualPlot
Source§impl<DB: DrawingBackend> Drawable<DB> for ResidualPlot
impl<DB: DrawingBackend> Drawable<DB> for ResidualPlot
Auto Trait Implementations§
impl Freeze for ResidualPlot
impl RefUnwindSafe for ResidualPlot
impl Send for ResidualPlot
impl Sync for ResidualPlot
impl Unpin for ResidualPlot
impl UnsafeUnpin for ResidualPlot
impl UnwindSafe for ResidualPlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
Source§fn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion