@@ -250,7 +250,7 @@ mod tests {
250
250
}
251
251
252
252
#[ test]
253
- fn test_central_order_moment_with_empty_array_of_floats ( ) {
253
+ fn test_central_moment_with_empty_array_of_floats ( ) {
254
254
let a: Array1 < f64 > = array ! [ ] ;
255
255
for order in 0 ..=3 {
256
256
assert ! ( a. central_moment( order) . is_none( ) ) ;
@@ -259,23 +259,23 @@ mod tests {
259
259
}
260
260
261
261
#[ test]
262
- fn test_zeroth_central_order_moment_is_one ( ) {
262
+ fn test_zeroth_central_moment_is_one ( ) {
263
263
let n = 50 ;
264
264
let bound: f64 = 200. ;
265
265
let a = Array :: random ( n, Uniform :: new ( -bound. abs ( ) , bound. abs ( ) ) ) ;
266
266
assert_eq ! ( a. central_moment( 0 ) . unwrap( ) , 1. ) ;
267
267
}
268
268
269
269
#[ test]
270
- fn test_first_central_order_moment_is_zero ( ) {
270
+ fn test_first_central_moment_is_zero ( ) {
271
271
let n = 50 ;
272
272
let bound: f64 = 200. ;
273
273
let a = Array :: random ( n, Uniform :: new ( -bound. abs ( ) , bound. abs ( ) ) ) ;
274
274
assert_eq ! ( a. central_moment( 1 ) . unwrap( ) , 0. ) ;
275
275
}
276
276
277
277
#[ test]
278
- fn test_central_order_moments ( ) {
278
+ fn test_central_moments ( ) {
279
279
let a: Array1 < f64 > = array ! [
280
280
0.07820559 , 0.5026185 , 0.80935324 , 0.39384033 , 0.9483038 , 0.62516215 , 0.90772261 ,
281
281
0.87329831 , 0.60267392 , 0.2960298 , 0.02810356 , 0.31911966 , 0.86705506 , 0.96884832 ,
@@ -306,7 +306,7 @@ mod tests {
306
306
}
307
307
308
308
#[ test]
309
- fn test_bulk_central_order_moments ( ) {
309
+ fn test_bulk_central_moments ( ) {
310
310
// Test that the bulk method is coherent with the non-bulk method
311
311
let n = 50 ;
312
312
let bound: f64 = 200. ;
0 commit comments