This commit is contained in:
James Cherry 2019-01-28 09:31:56 -08:00
parent 3f65204717
commit 9bf1591d62
2 changed files with 9 additions and 4 deletions

View File

@ -375,11 +375,12 @@ operator/(float delay1,
Delay
operator*(const Delay &delay1,
float delay2)
float scale)
{
return Delay(delay1.mean() * delay2,
delay1.sigma2Early() * delay2,
delay1.sigma2Late() * delay2);
float scale2 = square(scale);
return Delay(delay1.mean() * scale,
delay1.sigma2Early() * scale2,
delay1.sigma2Late() * scale2);
}
float

View File

@ -4020,6 +4020,10 @@ pocv_enabled()
void
set_pocv_enabled(bool enabled)
{
#if !SSTA
if (enabled)
Sta::sta()->report()->error("POCV support requires compilation with SSTA=1.\n");
#endif
return Sta::sta()->setPocvEnabled(enabled);
}