Interpretations2 class
Provides algorithms and data structures for analyzing fetal heart rate (FHR) test data.
The Interpretations2 class processes FHR data to extract clinical metrics such as
accelerations, decelerations, baseline heart rate, short- and long-term variability,
and episodes of high/low variation. It supports initialization from raw BPM data,
test models, or empty state, and exposes methods for cleaning, smoothing, and
segmenting the data for further interpretation.
Example usage:
final interp = Interpretations2.withData(bpmList, gestationalAge);
int accels = interp.getnAccelerations();
int decels = interp.getnDecelerations();
double stv = interp.getShortTermVariationBpm();
Constructors
- Interpretations2()
- Interpretations2.fromMap(Test test)
-
Interpretations2.withData(List<
int> bpm, int gAge)
Properties
-
accelerationsList
↔ List<
MarkerIndices> ? -
getter/setter pair
- basalHeartRate ↔ int
-
getter/setter pair
-
baselineBpmList
↔ List<
int> ? -
getter/setter pair
-
baselineEpoch
↔ List<
int?> -
getter/setter pair
-
baselineEpochBpm
↔ List<
int?> -
getter/setter pair
-
beatsInMilliseconds
↔ List<
int?> -
getter/setter pair
-
beatsInMillisecondsSmooth
↔ List<
int?> -
getter/setter pair
-
bpmCorrectedIndices
↔ List<
int> -
getter/setter pair
-
bpmList
↔ List<
int> ? -
getter/setter pair
-
bpmListSmooth
↔ List<
int> ? -
getter/setter pair
-
cleanBaselineEpoch
↔ List<
int?> -
getter/setter pair
-
cleanBaselineEpochBpm
↔ List<
int?> -
getter/setter pair
-
cleanMillisecondsEpoch
↔ List<
int?> ? -
getter/setter pair
-
cleanMillisecondsEpochBpm
↔ List<
int?> -
getter/setter pair
- correctionCount ↔ int?
-
getter/setter pair
-
decelerationsList
↔ List<
MarkerIndices> ? -
getter/setter pair
- fisherScore ↔ int
-
getter/setter pair
- fisherScore2 ↔ int
-
getter/setter pair
- gestAge ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDeceleration ↔ bool
-
getter/setter pair
- isSkipped ↔ bool
-
getter/setter pair
- longTermVariation ↔ int
-
getter/setter pair
-
millisecondsEpoch
↔ List<
int?> -
getter/setter pair
-
millisecondsEpochBpm
↔ List<
int?> -
getter/setter pair
-
millisecondsEpochBpmSmooth
↔ List<
int> ? -
getter/setter pair
-
millisecondsEpochSmooth
↔ List<
int?> -
getter/setter pair
- nAccelerations ↔ int?
-
getter/setter pair
- nDecelerations ↔ int?
-
getter/setter pair
-
noiseList
↔ List<
MarkerIndices> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortTermVariationBpm ↔ double
-
getter/setter pair
- shortTermVariationMilli ↔ int
-
getter/setter pair
Methods
-
calculateAccelerations(
) → int - An acceleration is defined as an increase in FHR above the baseline that lasts for longer than 15 seconds and has a maximum excursion above the baseline of greater than 10 beats/min
-
calculateAvgHeartRate(
List< int?> list) → int -
calculateBasalHeartRate(
List< int?> list) → int -
calculateBaseLine(
List< int?> millisecondsEpoch) → List<int?> -
calculateDecelerations(
) → int - second criteria *
-
calculateEpisodesOfLowAndHighVariation(
) → void -
calculateEpochBpm(
) → List< int?> -
calculateLowVariationAvg(
List< int?> list, int avgHR) → int -
calculateShortTermVariability(
) → void -
cleanBpmList(
) → void -
convertBaselineArrayToBpmEpoch(
List< int?> baselineArray) → List<int?> -
convertBaselineArrayToBpmList(
List< int?> _baselineArray) → List<int> -
convertBpmToMilli(
List< int> list) → List<int?> -
convertMilliToEpoch(
List< int?> millisecondBeats) → List<int?> -
getAccelerationsList(
) → List< MarkerIndices> ? -
getBasalHeartRate(
) → int -
getBasalHeartRateStr(
) → String -
getBaselineBpmList(
) → List< int> ? -
getBaselineWindowAverage(
List< int> list, int index, int window) → int -
getBaselineWindowSmoothAverage(
List< int?> list, int index, int window) → int? -
getDecelerationsList(
) → List< MarkerIndices> ? -
getLongTermVariation(
) → int -
getLongTermVariationStr(
) → String -
getnAccelerations(
) → int? -
getnAccelerationsStr(
) → String -
getnDecelerations(
) → int? -
getnDecelerationsStr(
) → String -
getNextNonZeroBpm(
int index, List< int> ? list) → int -
getNextValidBpm(
int index, List< int> list) → int -
getNoiseAreaList(
) → List< MarkerIndices> ? -
getNoiseAreas(
List< int> list) → List<int> -
getShortTermVariationBpm(
) → double -
getShortTermVariationBpmStr(
) → String -
getShortTermVariationMilli(
) → int -
getShortTermVariationMilliStr(
) → String -
getWindowAvreage(
List< int> list, int index, int window) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDecelerationMinutes(
) → void -
removeNoiseMinutes(
) → void -
removeTrailingZeros(
List< int> list) → void -
smoothBpm(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- highFHREpisodePercentiles → List
-
final
Constants
- FACTOR → const int
- NO_OF_SAMPLES_PER_MINUTE → const int
- SIXTY_THOUSAND_MS → const int