java.lang.Object
pl.polsl.rtsa.api.dto.SignalStatistics.Builder
- Enclosing class:
SignalStatistics
Mutable builder for constructing
SignalStatistics instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutableSignalStatisticsfrom the current builder state.dcOffset(double dcOffset) Sets the DC offset (mean voltage) value.dominantFreq(double dominantFreq) Sets the dominant frequency value in Hz.dominantFreqMag(double dominantFreqMag) Sets the magnitude of the dominant frequency component.maxVoltage(double maxVoltage) Sets the maximum voltage value.minVoltage(double minVoltage) Sets the minimum voltage value.peakToPeak(double peakToPeak) Sets the peak-to-peak voltage value.rmsVoltage(double rmsVoltage) Sets the RMS voltage value.
-
Field Details
-
rmsVoltage
private double rmsVoltage -
peakToPeak
private double peakToPeak -
minVoltage
private double minVoltage -
maxVoltage
private double maxVoltage -
dcOffset
private double dcOffset -
dominantFreq
private double dominantFreq -
dominantFreqMag
private double dominantFreqMag
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rmsVoltage
Sets the RMS voltage value. -
peakToPeak
Sets the peak-to-peak voltage value. -
minVoltage
Sets the minimum voltage value. -
maxVoltage
Sets the maximum voltage value. -
dcOffset
Sets the DC offset (mean voltage) value. -
dominantFreq
Sets the dominant frequency value in Hz. -
dominantFreqMag
Sets the magnitude of the dominant frequency component. -
build
Builds an immutableSignalStatisticsfrom the current builder state.- Returns:
- a new
SignalStatisticsinstance
-