Skip to content

Commit 98ddf72

Browse files
committed
Update documentation to remove most explicit references to ArrayBase
1 parent 5ac8d69 commit 98ddf72

File tree

7 files changed

+111
-106
lines changed

7 files changed

+111
-106
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repository = "https://github.com/rust-ndarray/ndarray-stats"
1414
documentation = "https://docs.rs/ndarray-stats/"
1515
readme = "README.md"
1616

17-
description = "Statistical routines for ArrayBase, the n-dimensional array data structure provided by ndarray."
17+
description = "Statistical routines for the n-dimensional array data structures provided by ndarray."
1818

1919
keywords = ["array", "multidimensional", "statistics", "matrix", "ndarray"]
2020
categories = ["data-structures", "science"]

README.md

Lines changed: 105 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
[![Crate](https://img.shields.io/crates/v/ndarray-stats.svg)](https://crates.io/crates/ndarray-stats)
66
[![Documentation](https://docs.rs/ndarray-stats/badge.svg)](https://docs.rs/ndarray-stats)
77

8-
This crate provides statistical methods for [`ndarray`]'s `ArrayBase` type.
8+
This crate provides statistical methods for [`ndarray`]'s `ArrayRef` type.
99

1010
Currently available routines include:
11-
- order statistics (minimum, maximum, median, quantiles, etc.);
12-
- summary statistics (mean, skewness, kurtosis, central moments, etc.)
13-
- partitioning;
14-
- correlation analysis (covariance, pearson correlation);
15-
- measures from information theory (entropy, KL divergence, etc.);
16-
- deviation functions (distances, counts, errors, etc.);
17-
- histogram computation.
11+
12+
- order statistics (minimum, maximum, median, quantiles, etc.);
13+
- summary statistics (mean, skewness, kurtosis, central moments, etc.)
14+
- partitioning;
15+
- correlation analysis (covariance, pearson correlation);
16+
- measures from information theory (entropy, KL divergence, etc.);
17+
- deviation functions (distances, counts, errors, etc.);
18+
- histogram computation.
1819

1920
See the [documentation](https://docs.rs/ndarray-stats) for more information.
2021

@@ -32,98 +33,102 @@ ndarray-stats = "0.6.0"
3233

3334
## Releases
3435

35-
* **0.6.0**
36-
37-
* Breaking changes
38-
* Minimum supported Rust version: `1.64.0`
39-
* Updated to `ndarray:v0.16.0`
40-
* Updated to `approx:v0.5.0`
41-
42-
* Updated to `ndarray-rand:v0.15.0`
43-
* Updated to `indexmap:v2.4`
44-
* Updated to `itertools:v0.13`
45-
46-
*Contributors*: [@bluss](https://github.com/bluss)
47-
48-
* **0.5.1**
49-
* Fixed bug in implementation of `MaybeNaN::remove_nan_mut` for `f32` and
50-
`f64` for views with non-standard layouts. Before this fix, the bug could
51-
cause incorrect results, buffer overflows, etc., in this method and others
52-
which use it. Thanks to [@JacekCzupyt](https://github.com/JacekCzupyt) for
53-
reporting the issue (#89).
54-
* Minor docs improvements.
55-
56-
*Contributors*: [@jturner314](https://github.com/jturner314), [@BenMoon](https://github.com/BenMoon)
57-
58-
* **0.5.0**
59-
* Breaking changes
60-
* Minimum supported Rust version: `1.49.0`
61-
* Updated to `ndarray:v0.15.0`
62-
63-
*Contributors*: [@Armavica](https://github.com/armavica), [@cassiersg](https://github.com/cassiersg)
64-
65-
* **0.4.0**
66-
* Breaking changes
67-
* Minimum supported Rust version: `1.42.0`
68-
* New functionality:
69-
* Summary statistics:
70-
* Weighted variance
71-
* Weighted standard deviation
72-
* Improvements / breaking changes:
73-
* Documentation improvements for Histograms
74-
* Updated to `ndarray:v0.14.0`
75-
76-
*Contributors*: [@munckymagik](https://github.com/munckymagik), [@nilgoyette](https://github.com/nilgoyette), [@LukeMathWalker](https://github.com/LukeMathWalker), [@lebensterben](https://github.com/lebensterben), [@xd009642](https://github.com/xd009642)
77-
78-
* **0.3.0**
79-
80-
* Breaking changes
81-
* Minimum supported Rust version: `1.37`
82-
* New functionality:
83-
* Deviation functions:
84-
* Counts equal/unequal
85-
* `l1`, `l2`, `linf` distances
86-
* (Root) mean squared error
87-
* Peak signal-to-noise ratio
88-
* Summary statistics:
89-
* Weighted sum
90-
* Weighted mean
91-
* Improvements / breaking changes:
92-
* Updated to `ndarray:v0.13.0`
93-
94-
*Contributors*: [@munckymagik](https://github.com/munckymagik), [@nilgoyette](https://github.com/nilgoyette), [@jturner314](https://github.com/jturner314), [@LukeMathWalker](https://github.com/LukeMathWalker)
95-
96-
* **0.2.0**
97-
98-
* Breaking changes
99-
* All `ndarray-stats`' extension traits are now impossible to implement by
100-
users of the library (see [#34])
101-
* Redesigned error handling across the whole crate, standardising on `Result`
102-
* New functionality:
103-
* Summary statistics:
104-
* Harmonic mean
105-
* Geometric mean
106-
* Central moments
107-
* Kurtosis
108-
* Skewness
109-
* Information theory:
110-
* Entropy
111-
* Cross-entropy
112-
* Kullback-Leibler divergence
113-
* Quantiles and order statistics:
114-
* `argmin` / `argmin_skipnan`
115-
* `argmax` / `argmax_skipnan`
116-
* Optimized bulk quantile computation (`quantiles_mut`, `quantiles_axis_mut`)
117-
* Fixes:
118-
* Reduced occurrences of overflow for `interpolate::midpoint`
119-
120-
*Contributors*: [@jturner314](https://github.com/jturner314), [@LukeMathWalker](https://github.com/LukeMathWalker), [@phungleson](https://github.com/phungleson), [@munckymagik](https://github.com/munckymagik)
121-
122-
[#34]: https://github.com/rust-ndarray/ndarray-stats/issues/34
123-
124-
* **0.1.0**
125-
126-
* Initial release by @LukeMathWalker and @jturner314.
36+
- **0.6.0**
37+
38+
- Breaking changes
39+
40+
- Minimum supported Rust version: `1.64.0`
41+
- Updated to `ndarray:v0.16.0`
42+
- Updated to `approx:v0.5.0`
43+
44+
- Updated to `ndarray-rand:v0.15.0`
45+
- Updated to `indexmap:v2.4`
46+
- Updated to `itertools:v0.13`
47+
48+
_Contributors_: [@bluss](https://github.com/bluss)
49+
50+
- **0.5.1**
51+
52+
- Fixed bug in implementation of `MaybeNaN::remove_nan_mut` for `f32` and
53+
`f64` for views with non-standard layouts. Before this fix, the bug could
54+
cause incorrect results, buffer overflows, etc., in this method and others
55+
which use it. Thanks to [@JacekCzupyt](https://github.com/JacekCzupyt) for
56+
reporting the issue (#89).
57+
- Minor docs improvements.
58+
59+
_Contributors_: [@jturner314](https://github.com/jturner314), [@BenMoon](https://github.com/BenMoon)
60+
61+
- **0.5.0**
62+
63+
- Breaking changes
64+
- Minimum supported Rust version: `1.49.0`
65+
- Updated to `ndarray:v0.15.0`
66+
67+
_Contributors_: [@Armavica](https://github.com/armavica), [@cassiersg](https://github.com/cassiersg)
68+
69+
- **0.4.0**
70+
71+
- Breaking changes
72+
- Minimum supported Rust version: `1.42.0`
73+
- New functionality:
74+
- Summary statistics:
75+
- Weighted variance
76+
- Weighted standard deviation
77+
- Improvements / breaking changes:
78+
- Documentation improvements for Histograms
79+
- Updated to `ndarray:v0.14.0`
80+
81+
_Contributors_: [@munckymagik](https://github.com/munckymagik), [@nilgoyette](https://github.com/nilgoyette), [@LukeMathWalker](https://github.com/LukeMathWalker), [@lebensterben](https://github.com/lebensterben), [@xd009642](https://github.com/xd009642)
82+
83+
- **0.3.0**
84+
85+
- Breaking changes
86+
- Minimum supported Rust version: `1.37`
87+
- New functionality:
88+
- Deviation functions:
89+
- Counts equal/unequal
90+
- `l1`, `l2`, `linf` distances
91+
- (Root) mean squared error
92+
- Peak signal-to-noise ratio
93+
- Summary statistics:
94+
- Weighted sum
95+
- Weighted mean
96+
- Improvements / breaking changes:
97+
- Updated to `ndarray:v0.13.0`
98+
99+
_Contributors_: [@munckymagik](https://github.com/munckymagik), [@nilgoyette](https://github.com/nilgoyette), [@jturner314](https://github.com/jturner314), [@LukeMathWalker](https://github.com/LukeMathWalker)
100+
101+
- **0.2.0**
102+
103+
- Breaking changes
104+
- All `ndarray-stats`' extension traits are now impossible to implement by
105+
users of the library (see [#34])
106+
- Redesigned error handling across the whole crate, standardising on `Result`
107+
- New functionality:
108+
- Summary statistics:
109+
- Harmonic mean
110+
- Geometric mean
111+
- Central moments
112+
- Kurtosis
113+
- Skewness
114+
- Information theory:
115+
- Entropy
116+
- Cross-entropy
117+
- Kullback-Leibler divergence
118+
- Quantiles and order statistics:
119+
- `argmin` / `argmin_skipnan`
120+
- `argmax` / `argmax_skipnan`
121+
- Optimized bulk quantile computation (`quantiles_mut`, `quantiles_axis_mut`)
122+
- Fixes:
123+
- Reduced occurrences of overflow for `interpolate::midpoint`
124+
125+
_Contributors_: [@jturner314](https://github.com/jturner314), [@LukeMathWalker](https://github.com/LukeMathWalker), [@phungleson](https://github.com/phungleson), [@munckymagik](https://github.com/munckymagik)
126+
127+
[#34]: https://github.com/rust-ndarray/ndarray-stats/issues/34
128+
129+
- **0.1.0**
130+
131+
- Initial release by @LukeMathWalker and @jturner314.
127132

128133
## Contributing
129134

src/histogram/histograms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl<A: Ord> Histogram<A> {
7171
}
7272
}
7373

74-
/// Extension trait for `ArrayBase` providing methods to compute histograms.
74+
/// Extension trait for `ArrayRef` providing methods to compute histograms.
7575
pub trait HistogramExt<A> {
7676
/// Returns the [histogram](https://en.wikipedia.org/wiki/Histogram)
7777
/// for a 2-dimensional array of points `M`.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! The [`ndarray-stats`] crate exposes statistical routines for `ArrayBase`,
1+
//! The [`ndarray-stats`] crate exposes statistical routines for `ArrayRef`,
22
//! the *n*-dimensional array data structure provided by [`ndarray`].
33
//!
44
//! Currently available routines include:

src/maybe_nan/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl<T> NotNone<T> {
260260
}
261261
}
262262

263-
/// Extension trait for `ArrayBase` providing NaN-related functionality.
263+
/// Extension trait for `ArrayRef` providing NaN-related functionality.
264264
pub trait MaybeNanExt<A, D>
265265
where
266266
A: MaybeNan,

src/quantile/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use ndarray::{RemoveAxis, Zip};
88
use noisy_float::types::N64;
99
use std::cmp;
1010

11-
/// Quantile methods for `ArrayBase`.
11+
/// Quantile methods for `ArrayRef`.
1212
pub trait QuantileExt<A, D>
1313
where
1414
D: Dimension,

src/summary_statistics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use ndarray::{Array, ArrayRef, Axis, Dimension, Ix1, RemoveAxis};
44
use num_traits::{Float, FromPrimitive, Zero};
55
use std::ops::{Add, AddAssign, Div, Mul};
66

7-
/// Extension trait for `ArrayBase` providing methods
7+
/// Extension trait for `ArrayRef` providing methods
88
/// to compute several summary statistics (e.g. mean, variance, etc.).
99
pub trait SummaryStatisticsExt<A, D>
1010
where

0 commit comments

Comments
 (0)