Skip to content

Commit cc85385

Browse files
committed
fix variance computation
1 parent ba778ac commit cc85385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/processes/blackscholesprocess.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace QuantLib {
104104
blackVolatility_->blackVariance(t0, 0.01);
105105
}
106106
else{
107-
return discretization_->diffusion(*this,t0,x0,dt);
107+
return discretization_->variance(*this,t0,x0,dt);
108108
}
109109
}
110110

0 commit comments

Comments
 (0)