File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,4 @@ homepage = "https://github.com/loyispa/sketches-rust"
10
10
description = " Rust implementation of DDSketch."
11
11
exclude = [" .gitignore" ]
12
12
13
- [dependencies ]
14
- rust-strictmath = " 0.1.1"
13
+ [dependencies ]
Original file line number Diff line number Diff line change 1
1
use crate :: sketch:: { Flag , FlagType } ;
2
2
use crate :: { serde, Error } ;
3
- use rust_strictmath:: cbrt;
4
3
5
4
use crate :: output:: Output ;
6
5
@@ -160,7 +159,7 @@ impl IndexMapping {
160
159
* CUBICALLY_INTERPOLATED_MAPPING_A
161
160
* CUBICALLY_INTERPOLATED_MAPPING_A
162
161
* ( index - index. floor ( ) ) ;
163
- let p: f64 = cbrt ( ( d1 - ( d1 * d1 - 4.0 * d0 * d0 * d0) . sqrt ( ) ) / 2.0 ) ;
162
+ let p: f64 = ( ( d1 - ( d1 * d1 - 4.0 * d0 * d0 * d0) . sqrt ( ) ) / 2.0 ) . cbrt ( ) ;
164
163
let significand_plus_one: f64 = -( CUBICALLY_INTERPOLATED_MAPPING_B + p + d0 / p)
165
164
/ ( 3.0 * CUBICALLY_INTERPOLATED_MAPPING_A )
166
165
+ 1.0 ;
You can’t perform that action at this time.
0 commit comments