/src/main/java/net/finmath/montecarlo/hybridassetinterestrate/ConvexityAdjustedModel.java
for( long factorIndex=0; factorIndex<factorLoadingsBaseModel.length; factorIndex++) {
for ( int factorIndex=0; factorIndex<factorLoadingsBaseModel.length; factorIndex++ ) {
processValueTransformModel = measureTransformModel.getProcessValue(timeIndex); for(int componentIndex=0; componentIndex<baseModel.getNumberOfComponents(); componentIndex++) { if(driftUnadjusted[componentIndex] != null) { driftAdjusted[componentIndex] = driftUnadjusted[componentIndex]; final RandomVariable[] factorLoadingsBaseModel = baseModel.getFactorLoading(process, timeIndex, componentIndex, realizationAtTimeIndex); final RandomVariable[] factorLoadingsTransfrom = measureTransformModel.getModel().getFactorLoading(measureTransformModel, timeIndex, 0, processValueTransformModel); <extra_id_0> if(factorLoadingMap.containsKey(factorIndex)) { driftAdjusted[componentIndex] = driftAdjusted[componentIndex].addProduct( factorLoadingsBaseModel[factorIndex].mult(-1), factorLoadingsTransfrom[factorLoadingMap.get(factorIndex)]); } }