Skip to content

Make priv members of extra::stats::Summary public. #10923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions src/libextra/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,18 @@ pub trait Stats {
#[deriving(Clone, Eq)]
#[allow(missing_doc)]
pub struct Summary {
priv sum: f64,
// public
sum: f64,
min: f64,
// public
max: f64,
priv mean: f64,
// public
mean: f64,
median: f64,
priv var: f64,
priv std_dev: f64,
priv std_dev_pct: f64,
// public
var: f64,
std_dev: f64,
std_dev_pct: f64,
median_abs_dev: f64,
// public
median_abs_dev_pct: f64,
priv quartiles: (f64,f64,f64),
priv iqr: f64,
quartiles: (f64,f64,f64),
iqr: f64,
}

impl Summary {
Expand Down