Refactor so we can see if there is any way to improve the performance
This commit is contained in:
@@ -8,9 +8,11 @@ pub(crate) struct TeamMessage {
|
||||
}
|
||||
|
||||
impl TeamMessage {
|
||||
/*
|
||||
pub(crate) fn p(&self) -> Gaussian {
|
||||
self.prior * self.likelihood_lose * self.likelihood_win * self.likelihood_draw
|
||||
}
|
||||
*/
|
||||
|
||||
pub(crate) fn posterior_win(&self) -> Gaussian {
|
||||
self.prior * self.likelihood_lose * self.likelihood_draw
|
||||
@@ -25,6 +27,7 @@ impl TeamMessage {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
pub(crate) struct DrawMessage {
|
||||
pub(crate) prior: Gaussian,
|
||||
pub(crate) prior_team: Gaussian,
|
||||
@@ -49,14 +52,16 @@ impl DrawMessage {
|
||||
self.likelihood_win * self.likelihood_lose
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
pub(crate) struct DiffMessage {
|
||||
pub(crate) prior: Gaussian,
|
||||
pub(crate) likelihood: Gaussian,
|
||||
}
|
||||
|
||||
impl DiffMessage {
|
||||
/*
|
||||
pub(crate) fn p(&self) -> Gaussian {
|
||||
self.prior * self.likelihood
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user