Struct vega_lite_4::ImputeParams
source · pub struct ImputeParams {
pub frame: Option<Vec<Option<f64>>>,
pub keyvals: Option<Keyvals>,
pub method: Option<ImputeParamsMethod>,
pub value: Option<Value>,
}
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<ImputeParamsMethod>
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§
source§impl Clone for ImputeParams
impl Clone for ImputeParams
source§fn clone(&self) -> ImputeParams
fn clone(&self) -> ImputeParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more