Skip to content

Commit f97d4e0

Browse files
committed
complete revise the architecture
1 parent fa142c7 commit f97d4e0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/model_points.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ pub fn generate_model_points(mp_size: usize, seed: usize) -> PolarsResult<DataFr
4141
let policy_count = Array1::<f64>::ones(mp_size);
4242

4343
// Sum insured (Float): Random values between 100,000 and 1,000,000 (multiple of 1000)
44-
let sum_insured =
45-
Array1::random_using(mp_size, Uniform::new(0.0f64, 1.0f64), &mut rng) // Random floats between 0 and 1
46-
.mapv(|x| (((900_000.0 * x + 100_000.0) / 1000.0).round() * 1000.0));
44+
let sum_insured = Array1::random_using(mp_size, Uniform::new(0.0f64, 1.0f64), &mut rng) // Random floats between 0 and 1
45+
.mapv(|x| (((900_000.0 * x + 100_000.0) / 1000.0).round() * 1000.0));
4746

4847
// Create a DataFrame with the generated data
4948
let model_points_df = df![

src/projections/projection_mp.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use crate::model_points::ModelPoint;
33
use ndarray::prelude::*;
44
use polars::prelude::*;
55

6-
76
//---------------------------------------------------------------------------------------------------------
87
// PRIVATE
98
//---------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)