light-curve-feature 0.1.8-beta.0

Feature extractor from noisy time series
docs.rs failed to build light-curve-feature-0.1.8-beta.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: light-curve-feature-0.7.1

Light curve feature

light-curve-feature is a part of light-curve family that implements extraction of numerous light curve features used in astrophysics.

use light_curve_feature::*;

// Let's find amplitude and reduced Chi-squared of the light curve
let fe = feat_extr!(Amplitude::default(), ReducedChi2::default());
// Define light curve
let time = [0.0, 1.0, 2.0, 3.0, 4.0];
let magn = [-1.0, 2.0, 1.0, 3.0, 4.5];
let magn_err_squared = [0.2, 0.1, 0.5, 0.1, 0.2];
let ts = TimeSeries::new(&time[..], &magn[..], Some(&magn_err_squared[..]));
// Get results and print
let result = fe.eval(ts);
let names = fe.get_names();
println!("{:?}", names.iter().zip(result.iter()).collect::<Vec<_>>());