File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 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"
1010description = " Rust implementation of DDSketch."
1111exclude = [" .gitignore" ]
1212
13- [dependencies ]
14- rust-strictmath = " 0.1.1"
13+ [dependencies ]
Original file line number Diff line number Diff line change 11use crate :: sketch:: { Flag , FlagType } ;
22use crate :: { serde, Error } ;
3- use rust_strictmath:: cbrt;
43
54use crate :: output:: Output ;
65
@@ -160,7 +159,7 @@ impl IndexMapping {
160159 * CUBICALLY_INTERPOLATED_MAPPING_A
161160 * CUBICALLY_INTERPOLATED_MAPPING_A
162161 * ( 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 ( ) ;
164163 let significand_plus_one: f64 = -( CUBICALLY_INTERPOLATED_MAPPING_B + p + d0 / p)
165164 / ( 3.0 * CUBICALLY_INTERPOLATED_MAPPING_A )
166165 + 1.0 ;
You can’t perform that action at this time.
0 commit comments