File tree Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 2
2
name = " ndarray-stats"
3
3
version = " 0.1.0"
4
4
authors = [" Jim Turner <ndarray-stats@turner.link>" , " LukeMathWalker <rust@lpalmieri.com>" ]
5
+ edition = " 2018"
5
6
6
7
license = " MIT/Apache-2.0"
7
8
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ where
218
218
mod tests {
219
219
use super :: EntropyExt ;
220
220
use approx:: assert_abs_diff_eq;
221
- use errors:: { EmptyInput , MultiInputError } ;
221
+ use crate :: errors:: { EmptyInput , MultiInputError } ;
222
222
use ndarray:: { array, Array1 } ;
223
223
use noisy_float:: types:: n64;
224
224
use std:: f64;
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ extern crate ndarray_rand;
40
40
#[ cfg( test) ]
41
41
extern crate quickcheck;
42
42
43
- pub use correlation:: CorrelationExt ;
44
- pub use entropy:: EntropyExt ;
45
- pub use histogram:: HistogramExt ;
46
- pub use maybe_nan:: { MaybeNan , MaybeNanExt } ;
47
- pub use quantile:: { interpolate, Quantile1dExt , QuantileExt } ;
48
- pub use sort:: Sort1dExt ;
49
- pub use summary_statistics:: SummaryStatisticsExt ;
43
+ pub use crate :: correlation:: CorrelationExt ;
44
+ pub use crate :: entropy:: EntropyExt ;
45
+ pub use crate :: histogram:: HistogramExt ;
46
+ pub use crate :: maybe_nan:: { MaybeNan , MaybeNanExt } ;
47
+ pub use crate :: quantile:: { interpolate, Quantile1dExt , QuantileExt } ;
48
+ pub use crate :: sort:: Sort1dExt ;
49
+ pub use crate :: summary_statistics:: SummaryStatisticsExt ;
50
50
51
51
mod correlation;
52
52
mod entropy;
Original file line number Diff line number Diff line change @@ -18,25 +18,25 @@ pub trait MaybeNan: Sized {
18
18
/// Converts the value.
19
19
///
20
20
/// If the value is `None`, a NaN value is returned.
21
- fn from_not_nan ( Self :: NotNan ) -> Self ;
21
+ fn from_not_nan ( _ : Self :: NotNan ) -> Self ;
22
22
23
23
/// Converts the value.
24
24
///
25
25
/// If the value is `None`, a NaN value is returned.
26
- fn from_not_nan_opt ( Option < Self :: NotNan > ) -> Self ;
26
+ fn from_not_nan_opt ( _ : Option < Self :: NotNan > ) -> Self ;
27
27
28
28
/// Converts the value.
29
29
///
30
30
/// If the value is `None`, a NaN value is returned.
31
- fn from_not_nan_ref_opt ( Option < & Self :: NotNan > ) -> & Self ;
31
+ fn from_not_nan_ref_opt ( _ : Option < & Self :: NotNan > ) -> & Self ;
32
32
33
33
/// Returns a view with the NaN values removed.
34
34
///
35
35
/// This modifies the input view by moving elements as necessary. The final
36
36
/// order of the elements is unspecified. However, this method is
37
37
/// idempotent, and given the same input data, the result is always ordered
38
38
/// the same way.
39
- fn remove_nan_mut ( ArrayViewMut1 < Self > ) -> ArrayViewMut1 < Self :: NotNan > ;
39
+ fn remove_nan_mut ( _ : ArrayViewMut1 < Self > ) -> ArrayViewMut1 < Self :: NotNan > ;
40
40
}
41
41
42
42
/// Returns a view with the NaN values removed.
Original file line number Diff line number Diff line change 1
1
use self :: interpolate:: { higher_index, lower_index, Interpolate } ;
2
2
use super :: sort:: get_many_from_sorted_mut_unchecked;
3
3
use crate :: errors:: { EmptyInput , MinMaxError , MinMaxError :: UndefinedOrder } ;
4
- use errors:: QuantileError ;
4
+ use crate :: errors:: QuantileError ;
5
5
use ndarray:: prelude:: * ;
6
6
use ndarray:: { Data , DataMut , RemoveAxis , Zip } ;
7
7
use noisy_float:: types:: N64 ;
8
8
use std:: cmp;
9
- use { MaybeNan , MaybeNanExt } ;
9
+ use crate :: { MaybeNan , MaybeNanExt } ;
10
10
11
11
/// Quantile methods for `ArrayBase`.
12
12
pub trait QuantileExt < A , S , D >
You can’t perform that action at this time.
0 commit comments