From 5df4091a83bc55c967fe3cbcd3dc8ed5dab8ce48 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Tue, 24 Dec 2019 09:01:55 -0800 Subject: [PATCH] -normal2 delays swaps early/late sigmas --- graph/DelayNormal2.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/graph/DelayNormal2.cc b/graph/DelayNormal2.cc index ad54821c..de84c18b 100644 --- a/graph/DelayNormal2.cc +++ b/graph/DelayNormal2.cc @@ -148,8 +148,8 @@ Delay Delay::operator-(const Delay &delay) const { return Delay(mean_ - delay.mean_, - sigma2_[early_index] + delay.sigma2_[early_index], - sigma2_[late_index] + delay.sigma2_[late_index]); + sigma2_[early_index] + delay.sigma2_[late_index], + sigma2_[late_index] + delay.sigma2_[early_index]); } Delay @@ -161,7 +161,7 @@ Delay::operator-(float delay) const Delay Delay::operator-() const { - return Delay(-mean_, sigma2_[early_index], sigma2_[late_index]); + return Delay(-mean_, sigma2_[late_index], sigma2_[early_index]); } void @@ -182,8 +182,8 @@ bool Delay::operator==(const Delay &delay) const { return mean_ == delay.mean_ - && sigma2_[early_index] == delay.sigma2_[early_index] - && sigma2_[late_index] == delay.sigma2_[late_index]; + && sigma2_[early_index] == delay.sigma2_[late_index] + && sigma2_[late_index] == delay.sigma2_[early_index]; } bool