[][src]Struct vega_lite_3::ImputeParamsBuilder

pub struct ImputeParamsBuilder { /* fields omitted */ }

Builder for ImputeParams.

Methods

impl ImputeParamsBuilder[src]

pub fn frame<VALUE: Into<Vec<Option<f64>>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

A frame specification as a two-element array used to control the window over which the specified method is applied. The array entries should either be a number indicating the offset from the current data object, or null to indicate unbounded rows preceding or following the current data object. For example, the value [-5, 5] indicates that the window should include five objects preceding and five objects following the current object.

Default value:: [null, null] indicating that the window includes all objects.

pub fn keyvals<VALUE: Into<Keyvals>>(&mut self, value: VALUE) -> &mut Self[src]

Defines the key values that should be considered for imputation. An array of key values or an object defining a number sequence.

If provided, this will be used in addition to the key values observed within the input data. If not provided, the values will be derived from all unique values of the key field. For impute in encoding, the key field is the x-field if the y-field is imputed, or vice versa.

If there is no impute grouping, this property must be specified.

pub fn method<VALUE: Into<ImputeMethod>>(&mut self, value: VALUE) -> &mut Self[src]

The imputation method to use for the field value of imputed data objects. One of value, mean, median, max or min.

Default value: "value"

pub fn value<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self[src]

The field value to use when the imputation method is "value".

pub fn build(&self) -> Result<ImputeParams, String>[src]

Builds a new ImputeParams.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ImputeParamsBuilder[src]

impl Default for ImputeParamsBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.