Skip to content

Commit

Permalink
feat: change the name of a function in continuous_samples
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetsou committed Jun 7, 2022
1 parent 62a0ea7 commit 02d151b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opensrdk-probability"
version = "0.5.6"
version = "0.5.7"
authors = ["Kimura Yu <[email protected]>"]
edition = "2018"
description = "Standard probability library for OpenSRDK toolchain."
Expand All @@ -24,4 +24,4 @@ special = "0.8.1"
[dev-dependencies]
blas-src = { version = "0.8", features = ["intel-mkl"] }
lapack-src = { version = "0.8", features = ["intel-mkl"] }
plotters = "0.3.1"
plotters = "0.3.1"
2 changes: 1 addition & 1 deletion src/distribution/continuous_samples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where
&mut self.samples
}

pub fn mean(&self) -> Result<T, DistributionError> {
pub fn sum(&self) -> Result<T, DistributionError> {
let n = self.samples.len();
if n == 0 {
return Err(DistributionError::Others(
Expand Down

0 comments on commit 02d151b

Please sign in to comment.