-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpirometryWhistle.h
37 lines (29 loc) · 1.13 KB
/
SpirometryWhistle.h
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
32
33
34
35
36
37
//
// SpirometryWhistle.h
// OpenSpirometry
//
// Created by Eric Larson
// Copyright (c) 2015 Eric Larson. All rights reserved.
//
#import <Foundation/Foundation.h>
struct WhistleDimensions { // in millimeters
float Ddst;
float Ldst;
float Dcc;
float Lcc;
float Dit;
float Lit;
};
@interface SpirometryWhistle : NSObject
@property (strong, nonatomic) NSString* name;
@property (strong, nonatomic) id tag; // for however the user wants to tag this whistle
@property (nonatomic) NSNumber *calibratedCoefficient; // the coefficient of proportionality
@property (nonatomic) NSNumber *calibratedBias; // bias term for regression
@property (nonatomic) NSNumber *calculatedCoefficient; // the coefficient of proportionality
@property (nonatomic) NSNumber *calculatedBias; // bias term for regression
@property (nonatomic) struct WhistleDimensions dimensions;
-(void)setAsWhistleWithDimensions:(struct WhistleDimensions)structDims;
-(void)setWhistleToDefault; // hard coded Sato, et al., Application of the Vortex Whistle to a Spirometer
-(BOOL)isCalibrated;
-(float)calcFlowInLiterPerSecondFromFrequencyInHz:(float)freq;
@end