[−][src]Struct vega_lite_3::ImputeParams
An object defining the properties of the Impute Operation to be applied.
The field value of the other positional channel is taken as key
of the Impute
Operation.
The field of the color
channel if specified is used as groupby
of the Impute
Operation.
See also: impute
documentation.
Fields
frame: Option<Vec<Option<f64>>>
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.
keyvals: Option<Keyvals>
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.
method: Option<ImputeMethod>
The imputation method to use for the field value of imputed data objects.
One of value
, mean
, median
, max
or min
.
Default value: "value"
value: Option<Value>
The field value to use when the imputation method
is "value"
.
Trait Implementations
impl Clone for ImputeParams
[src]
fn clone(&self) -> ImputeParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ImputeParams
[src]
impl Default for ImputeParams
[src]
fn default() -> ImputeParams
[src]
impl<'de> Deserialize<'de> for ImputeParams
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ImputeParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImputeParams
impl Send for ImputeParams
impl Sync for ImputeParams
impl Unpin for ImputeParams
impl UnwindSafe for ImputeParams
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,