diff --git a/src/libextra/semver.rs b/src/libextra/semver.rs index 1644efb807046..4c1e3e470c182 100644 --- a/src/libextra/semver.rs +++ b/src/libextra/semver.rs @@ -10,9 +10,9 @@ //! Semantic version parsing and comparison. //! -//! Semantic versioning (see http://semver.org/) is a set of rules for -//! assigning version numbers intended to convey meaning about what has -//! changed, and how much. A version number has five parts: +//! [Semantic versioning](http://semver.org/) is a set of rules for assigning +//! version numbers intended to convey meaning about what has changed, and how +//! much. A version number has five parts: //! //! * Major number, updated for incompatible API changes //! * Minor number, updated for backwards-compatible API additions diff --git a/src/libextra/stats.rs b/src/libextra/stats.rs index 2b6c53b3c8615..9acd2ae1441b9 100644 --- a/src/libextra/stats.rs +++ b/src/libextra/stats.rs @@ -31,13 +31,13 @@ pub trait Stats { /// Arithmetic mean (average) of the samples: sum divided by sample-count. /// - /// See: https://en.wikipedia.org/wiki/Arithmetic_mean + /// See: fn mean(self) -> f64; /// Median of the samples: value separating the lower half of the samples from the higher half. /// Equal to `self.percentile(50.0)`. /// - /// See: https://en.wikipedia.org/wiki/Median + /// See: fn median(self) -> f64; /// Variance of the samples: bias-corrected mean of the squares of the differences of each @@ -46,7 +46,7 @@ pub trait Stats { /// bias that would appear if we calculated a population variance, by dividing by `(n-1)` rather /// than `n`. /// - /// See: https://en.wikipedia.org/wiki/Variance + /// See: fn var(self) -> f64; /// Standard deviation: the square root of the sample variance. @@ -54,7 +54,7 @@ pub trait Stats { /// Note: this is not a robust statistic for non-normal distributions. Prefer the /// `median_abs_dev` for unknown distributions. /// - /// See: https://en.wikipedia.org/wiki/Standard_deviation + /// See: fn std_dev(self) -> f64; /// Standard deviation as a percent of the mean value. See `std_dev` and `mean`. @@ -69,7 +69,7 @@ pub trait Stats { /// by the constant `1.4826` to allow its use as a consistent estimator for the standard /// deviation. /// - /// See: http://en.wikipedia.org/wiki/Median_absolute_deviation + /// See: fn median_abs_dev(self) -> f64; /// Median absolute deviation as a percent of the median. See `median_abs_dev` and `median`. @@ -81,7 +81,7 @@ pub trait Stats { /// /// Calculated by linear interpolation between closest ranks. /// - /// See: http://en.wikipedia.org/wiki/Percentile + /// See: fn percentile(self, pct: f64) -> f64; /// Quartiles of the sample: three values that divide the sample into four equal groups, each @@ -89,13 +89,13 @@ pub trait Stats { /// function may calculate the 3 quartiles more efficiently than 3 calls to `percentile`, but /// is otherwise equivalent. /// - /// See also: https://en.wikipedia.org/wiki/Quartile + /// See: fn quartiles(self) -> (f64,f64,f64); /// Inter-quartile range: the difference between the 25th percentile (1st quartile) and the 75th /// percentile (3rd quartile). See `quartiles`. /// - /// See also: https://en.wikipedia.org/wiki/Interquartile_range + /// See: fn iqr(self) -> f64; } @@ -249,7 +249,7 @@ fn percentile_of_sorted(sorted_samples: &[f64], /// outliers, at the cost of biasing the sample. It differs from trimming in that it does not /// change the number of samples, just changes the values of those that are outliers. /// -/// See: http://en.wikipedia.org/wiki/Winsorising +/// See: pub fn winsorize(samples: &mut [f64], pct: f64) { let mut tmp = samples.to_owned(); sort::tim_sort(tmp); diff --git a/src/libstd/fmt/parse.rs b/src/libstd/fmt/parse.rs index 9888af9313b9d..a826695348c7f 100644 --- a/src/libstd/fmt/parse.rs +++ b/src/libstd/fmt/parse.rs @@ -124,7 +124,7 @@ pub struct PluralArm<'self> { /// Enum of the 5 CLDR plural keywords. There is one more, "other", but that is /// specially placed in the `Plural` variant of `Method` /// -/// http://www.icu-project.org/apiref/icu4c/classicu_1_1PluralRules.html +/// See: #[deriving(Eq, IterBytes)] pub enum PluralKeyword { Zero, One, Two, Few, Many