/** * Creates a new instance of a sine {@link IntensityFunction}. This method * requires constant values to be set. For using supplied values see * {@link #buildStochasticSupplier()}. * @return A new instance. */ public IntensityFunction build() { checkArgument(isConstant(amplitudeSup), "Amplitude should be a constant (not a supplier)."); checkArgument(isConstant(frequencySup), "Frequency should be a constant (not a supplier)."); checkArgument(isConstant(heightSup), "Height should be a constant (not a supplier)."); checkArgument(isConstant(phaseShiftSup), "PhaseShift should be a constant (not a supplier)."); return build(0L); }