IMP.bff
Loading...
Searching...
No Matches
DecayPattern.h
Go to the documentation of this file.
1
9#ifndef IMPBFF_DECAYPATTERN_H
10#define IMPBFF_DECAYPATTERN_H
11
12#include <IMP/bff/bff_config.h>
13#include <iostream>
14#include <algorithm>
15#include <IMP/bff/DecayModifier.h>
16
17IMPBFF_BEGIN_NAMESPACE
18
26class IMPBFFEXPORT DecayPattern: public DecayModifier{
27private:
29 double constant_offset = 0.0;
30
32 double pattern_fraction = 0.0;
33
34public:
39 double get_pattern_fraction() const;
40
45 void set_pattern_fraction(double v);
46
52
58
63 void set_constant_offset(double v);
64
69 double get_constant_offset() const;
70
75 void add(DecayCurve* out) override;
76
86 explicit DecayPattern(
87 double constant_offset = 0.0,
88 DecayCurve* pattern = nullptr,
89 double pattern_fraction = 0.0,
90 int start = 0,
91 int stop = -1,
92 bool active = true
93 );
94};
95
96IMPBFF_END_NAMESPACE
97
98#endif //IMPBFF_DECAYPATTERN_H
Class for fluorescence decay curves.
Definition DecayCurve.h:38
A decorator that modifies a DecayCurve within a specified range.
Definition DecayModifier.h:29
The DecayPattern class represents a decay pattern with a constant offset and a background pattern.
Definition DecayPattern.h:26
void set_constant_offset(double v)
Set the constant offset in the model.
double get_constant_offset() const
Get the constant offset in the model.
double get_pattern_fraction() const
Get the fraction (area) of the background pattern.
void set_pattern_fraction(double v)
Set the fraction (area) of the background pattern.
void add(DecayCurve *out) override
Add the background pattern to the given decay curve.
DecayPattern(double constant_offset=0.0, DecayCurve *pattern=nullptr, double pattern_fraction=0.0, int start=0, int stop=-1, bool active=true)
Constructor for the DecayPattern class.
DecayCurve * get_pattern()
Get the background pattern.
void set_pattern(DecayCurve *v)
Set the background pattern.