How about generating the calibration data with a cv object (parameter of the constructor)?