From cdfa10b02a681090d95b7b5dd18b22603fa9a4cb Mon Sep 17 00:00:00 2001 From: Alex Touchet Date: Sat, 22 May 2021 15:07:25 -0700 Subject: [PATCH 1/3] Use HTTPS for links --- README.md | 4 ++-- src/online.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a426827..faa7a87 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ some support for computing them efficiently on *streams* of data. The intent is to permit parallel computation of statistics on large data sets. [![Build status](https://api.travis-ci.org/BurntSushi/rust-stats.png)](https://travis-ci.org/BurntSushi/rust-stats) -[![](http://meritbadge.herokuapp.com/streaming-stats)](https://crates.io/crates/streaming-stats) +[![](https://meritbadge.herokuapp.com/streaming-stats)](https://crates.io/crates/streaming-stats) -Dual-licensed under MIT or the [UNLICENSE](http://unlicense.org). +Dual-licensed under MIT or the [UNLICENSE](https://unlicense.org/). ### Documentation diff --git a/src/online.rs b/src/online.rs index 6837533..53cabc5 100644 --- a/src/online.rs +++ b/src/online.rs @@ -63,8 +63,8 @@ impl OnlineStats { /// Add a new sample. pub fn add(&mut self, sample: T) { let sample = sample.to_f64().unwrap(); - // Taken from: http://goo.gl/JKeqvj - // See also: http://goo.gl/qTtI3V + // Taken from: https://goo.gl/JKeqvj + // See also: https://goo.gl/qTtI3V let oldmean = self.mean; let prevq = self.variance * (self.size as f64); @@ -89,7 +89,7 @@ impl OnlineStats { impl Commute for OnlineStats { fn merge(&mut self, v: OnlineStats) { - // Taken from: http://goo.gl/iODi28 + // Taken from: https://goo.gl/iODi28 let (s1, s2) = (self.size as f64, v.size as f64); let meandiffsq = (self.mean - v.mean) * (self.mean - v.mean); let mean = ((s1 * self.mean) + (s2 * v.mean)) / (s1 + s2); From fdda634130ae1a22411e23481dd768374cbc4efc Mon Sep 17 00:00:00 2001 From: Alex Touchet Date: Mon, 21 Nov 2022 19:32:55 -0800 Subject: [PATCH 2/3] Fix crates.io badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index faa7a87..8e18b68 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ some support for computing them efficiently on *streams* of data. The intent is to permit parallel computation of statistics on large data sets. [![Build status](https://api.travis-ci.org/BurntSushi/rust-stats.png)](https://travis-ci.org/BurntSushi/rust-stats) -[![](https://meritbadge.herokuapp.com/streaming-stats)](https://crates.io/crates/streaming-stats) +[![crates.io](https://img.shields.io/crates/v/streaming-stats.svg)](https://crates.io/crates/streaming-stats) Dual-licensed under MIT or the [UNLICENSE](https://unlicense.org/). From 22442f8b1f259be9cba3809fb784eec6604f8326 Mon Sep 17 00:00:00 2001 From: Alex Touchet Date: Tue, 20 Dec 2022 15:25:12 -0800 Subject: [PATCH 3/3] Use SPDX license format --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a4ab680..779ba9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://github.com/BurntSushi/rust-stats" repository = "https://github.com/BurntSushi/rust-stats" readme = "README.md" keywords = ["statistics", "stats", "median", "mean", "stddev"] -license = "Unlicense/MIT" +license = "Unlicense OR MIT" [lib] name = "stats"