-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProFormaMembershipDescriptor.h
26 lines (20 loc) · 1.07 KB
/
ProFormaMembershipDescriptor.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
#ifndef PROFORMA_MEMBERSHIP_DESCRIPTOR_H
#define PROFORMA_MEMBERSHIP_DESCRIPTOR_H
namespace TopDownProteomics::ProForma {
class ProFormaMembershipDescriptor {
public:
// Initializes a new instance of ProFormaMembershipDescriptor with a single index and weight
ProFormaMembershipDescriptor(int zeroBasedIndex, double weight = 0.0)
: ZeroBasedStartIndex(zeroBasedIndex), ZeroBasedEndIndex(zeroBasedIndex), Weight(weight) {}
// Initializes a new instance of ProFormaMembershipDescriptor with a start and end index, and weight
ProFormaMembershipDescriptor(int zeroBasedStartIndex, int zeroBasedEndIndex, double weight = 0.0)
: ZeroBasedStartIndex(zeroBasedStartIndex), ZeroBasedEndIndex(zeroBasedEndIndex), Weight(weight) {}
// Gets the zero-based start index in the sequence.
int ZeroBasedStartIndex;
// Gets the zero-based end index in the sequence.
int ZeroBasedEndIndex;
// The weight this member has on the group.
double Weight;
};
}
#endif // PROFORMA_MEMBERSHIP_DESCRIPTOR_H