From ac06b334bc32040cab313cff5e9ab14d0c45549b Mon Sep 17 00:00:00 2001 From: Ben Sully Date: Wed, 11 Dec 2024 21:12:37 +0000 Subject: [PATCH] Mark transform functions as experimental for now --- js/augurs-transforms-js/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/augurs-transforms-js/src/lib.rs b/js/augurs-transforms-js/src/lib.rs index e78b00d..6573b9a 100644 --- a/js/augurs-transforms-js/src/lib.rs +++ b/js/augurs-transforms-js/src/lib.rs @@ -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 { @@ -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 { Ok(PowerTransform { @@ -34,6 +38,8 @@ impl PowerTransform { } /// Transform the given data. + /// + /// @experimental #[wasm_bindgen] pub fn transform(&self, data: VecF64) -> Result, JsError> { Ok(self @@ -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, JsError> { Ok(self