Skip to content

Commit 67177ef

Browse files
committed
auto merge of #10923 : boredomist/rust/export-summary-members, r=alexcrichton
Several of the members of `extra::stats::Summary` were calculated and tested, but not exposed externally. This change exposes all of the members.
2 parents 64ecb78 + 07e1859 commit 67177ef

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/libextra/stats.rs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,23 +105,18 @@ pub trait Stats {
105105
#[deriving(Clone, Eq)]
106106
#[allow(missing_doc)]
107107
pub struct Summary {
108-
priv sum: f64,
109-
// public
108+
sum: f64,
110109
min: f64,
111-
// public
112110
max: f64,
113-
priv mean: f64,
114-
// public
111+
mean: f64,
115112
median: f64,
116-
priv var: f64,
117-
priv std_dev: f64,
118-
priv std_dev_pct: f64,
119-
// public
113+
var: f64,
114+
std_dev: f64,
115+
std_dev_pct: f64,
120116
median_abs_dev: f64,
121-
// public
122117
median_abs_dev_pct: f64,
123-
priv quartiles: (f64,f64,f64),
124-
priv iqr: f64,
118+
quartiles: (f64,f64,f64),
119+
iqr: f64,
125120
}
126121

127122
impl Summary {

0 commit comments

Comments
 (0)