Skip to content

Commit

Permalink
Mark transform functions as experimental for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sd2k committed Dec 12, 2024
1 parent a43085f commit ac06b33
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/augurs-transforms-js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ use augurs_forecaster::transforms::Transform;
///
/// The optimal value of the `lambda` parameter is calculated from the data
/// using maximum likelihood estimation.
///
/// @experimental
#[derive(Debug)]
#[wasm_bindgen]
pub struct PowerTransform {
Expand All @@ -25,6 +27,8 @@ pub struct PowerTransform {
#[wasm_bindgen]
impl PowerTransform {
/// Create a new power transform for the given data.
///
/// @experimental
#[wasm_bindgen(constructor)]
pub fn new(opts: PowerTransformOptions) -> Result<PowerTransform, JsError> {
Ok(PowerTransform {
Expand All @@ -34,6 +38,8 @@ impl PowerTransform {
}

/// Transform the given data.
///
/// @experimental
#[wasm_bindgen]
pub fn transform(&self, data: VecF64) -> Result<Vec<f64>, JsError> {
Ok(self
Expand All @@ -43,6 +49,8 @@ impl PowerTransform {
}

/// Inverse transform the given data.
///
/// @experimental
#[wasm_bindgen(js_name = "inverseTransform")]
pub fn inverse_transform(&self, data: VecF64) -> Result<Vec<f64>, JsError> {
Ok(self
Expand Down

0 comments on commit ac06b33

Please sign in to comment.