コード例 #1
0
  @Override
  public final Calibrator createCalibrator(int i) throws IOException {
    final SequenceData coefficientsSequence = provider.getCalibrationCoefficients(i);
    final CompoundData coefficients = coefficientsSequence.getCompound(channelIndex);
    final double slope = coefficients.getInt(0) * slopeScaleFactor;
    final double intercept = coefficients.getInt(1) * interceptScaleFactor;

    return new CoefficientCalibrator(this, slope, intercept);
  }