Skip to content
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

Fix links in std:: and extra:: documentation #9424

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions src/libextra/semver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions src/libextra/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: <https://en.wikipedia.org/wiki/Arithmetic_mean>
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: <https://en.wikipedia.org/wiki/Median>
fn median(self) -> f64;

/// Variance of the samples: bias-corrected mean of the squares of the differences of each
Expand All @@ -46,15 +46,15 @@ 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: <https://en.wikipedia.org/wiki/Variance>
fn var(self) -> f64;

/// Standard deviation: the square root of the sample variance.
///
/// 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: <https://en.wikipedia.org/wiki/Standard_deviation>
fn std_dev(self) -> f64;

/// Standard deviation as a percent of the mean value. See `std_dev` and `mean`.
Expand All @@ -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: <http://en.wikipedia.org/wiki/Median_absolute_deviation>
fn median_abs_dev(self) -> f64;

/// Median absolute deviation as a percent of the median. See `median_abs_dev` and `median`.
Expand All @@ -81,21 +81,21 @@ pub trait Stats {
///
/// Calculated by linear interpolation between closest ranks.
///
/// See: http://en.wikipedia.org/wiki/Percentile
/// See: <http://en.wikipedia.org/wiki/Percentile>
fn percentile(self, pct: f64) -> f64;

/// Quartiles of the sample: three values that divide the sample into four equal groups, each
/// with 1/4 of the data. The middle value is the median. See `median` and `percentile`. This
/// 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: <https://en.wikipedia.org/wiki/Quartile>
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: <https://en.wikipedia.org/wiki/Interquartile_range>
fn iqr(self) -> f64;
}

Expand Down Expand Up @@ -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: <http://en.wikipedia.org/wiki/Winsorising>
pub fn winsorize(samples: &mut [f64], pct: f64) {
let mut tmp = samples.to_owned();
sort::tim_sort(tmp);
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/fmt/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: <http://www.icu-project.org/apiref/icu4c/classicu_1_1PluralRules.html>
#[deriving(Eq, IterBytes)]
pub enum PluralKeyword {
Zero, One, Two, Few, Many
Expand Down