Enum quandl_v3::prelude::Transform
[−]
[src]
pub enum Transform { none, diff, rdiff, rdiff_from, cumul, normalize, }
Perform calculations on your data prior to downloading.
Variants
none
No transformation, also the default.
diff
Row-on-row change; a parameter that will transform the data to show the difference between
days. Equivalent to y'[t] = y[t] - y[t - 1]
.
rdiff
Row-on-row percentage change; a parameter that will transform the data to show the
difference between days divided by the previous day. Equivalent to y'[t] = (y[t] - y[t - 1]) / y[t - 1]
.
rdiff_from
Row-on-row percentage change from latest value; a parameter that will transfrom the data to
show the percentage difference between the latest value and all subsequent values (where
y[n]
is the latest observation). Equivalent to y'[t] = (y[n] - y[t]) / y[t]
.
cumul
Cumulative sum; a parameter that will calculate the sum of all preceding data returned.
Equivalent to y'[t] = y[t] + y[t - 1] + ... + y[0]
.
normalize
Start at 100; a parameter that will normalize the data to the oldest datapoint returned.
Equivalent to y'[t] = (y[t] / y[0]) * 100
.
Trait Implementations
impl Debug for Transform
[src]
impl Copy for Transform
[src]
impl Clone for Transform
[src]
fn clone(&self) -> Transform
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more