Refactor so we can see if there is any way to improve the performance
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use crate::{gaussian::Gaussian, BETA, GAMMA, N_INF};
|
||||
use crate::{gaussian::Gaussian, BETA, GAMMA};
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct Player {
|
||||
pub(crate) prior: Gaussian,
|
||||
pub(crate) beta: f64,
|
||||
pub(crate) gamma: f64,
|
||||
pub(crate) draw: Gaussian,
|
||||
// pub(crate) draw: Gaussian,
|
||||
}
|
||||
|
||||
impl Player {
|
||||
@@ -14,7 +14,7 @@ impl Player {
|
||||
prior,
|
||||
beta,
|
||||
gamma,
|
||||
draw: N_INF,
|
||||
// draw: N_INF,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ impl Default for Player {
|
||||
prior: Gaussian::default(),
|
||||
beta: BETA,
|
||||
gamma: GAMMA,
|
||||
draw: N_INF,
|
||||
// draw: N_INF,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user