Skip to content

Commit

Permalink
updated serde to skip serializing internal fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankurte committed Jul 11, 2019
1 parent 79a5392 commit 316b603
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ pub struct Stats<T: Float + Zero + One + AddAssign + FromPrimitive + PartialEq +
pub std_dev: T,

/// Number of values collected
#[serde(skip)]
count: usize,

/// Internal mean squared for algo
#[serde(skip)]
mean2: T,
}

Expand Down

0 comments on commit 316b603

Please # to comment.