Skip to content

Commit

Permalink
complete comment for power_transform
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardcqian committed Dec 10, 2024
1 parent 2d7c724 commit 434ab52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/augurs-forecaster/src/transforms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ impl Transform {
///
/// This transform applies the Power transformation to each item.
/// The Power transformation is defined as:
///
/// - if all values are positive: Box-Cox transformation
/// - otherwise: Yeo-Johnson transformation
pub fn power_transform(data: &[f64]) -> Self {
if data.iter().all(|&x| x > 0.0) {
let lambda =
Expand Down

0 comments on commit 434ab52

Please sign in to comment.