-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlowVolumeDataAnalyzer.h
More file actions
31 lines (25 loc) · 1.23 KB
/
FlowVolumeDataAnalyzer.h
File metadata and controls
31 lines (25 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// FlowVolumeData.h
// OpenSpirometry
//
// Created by Eric Larson
// Copyright (c) 2015 Eric Larson. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface FlowVolumeDataAnalyzer : NSObject
@property (strong, nonatomic, readonly) NSNumber *peakFlowInLitersPerSecond;
@property (strong, nonatomic, readonly) NSNumber *fevOneInLiters;
@property (strong, nonatomic, readonly) NSNumber *fvcInLiters;
@property (strong, nonatomic, readonly) NSNumber *fevOneOverFvc; // computed property
@property (nonatomic, readonly) BOOL isFinalized;
@property (nonatomic, readonly) float preferredSamplingInterval; //TODO: write setter with error checking
-(void)addFlowEstimateInLitersPerSecond:(float)flow withTimeStamp:(CFAbsoluteTime)time;
-(float)getEstimateOfTotalVolumeInLiters;
-(NSDictionary*)finalizeCurvesAndGetResults;
-(void)addCustomErrorToEffort:(NSString*)errorMessage forKey:(NSString*)customKey; // errors are completely customizable
-(void)clearDataInEffort;
// how to get the data out in a good way? After finalizing:
// measures are set from the curves,
// maybe return the three NSArrays with time, volume, and flow rates
// maybe they should all be placed in an NSDictionary that can be passed around
@end