8 #ifndef IMPBFF_DECAYCURVE_H
9 #define IMPBFF_DECAYCURVE_H
10 #include <IMP/bff/bff_config.h>
19 #include <IMP/bff/internal/MovingAverage.h>
20 #include <IMP/bff/internal/json.h>
23 IMPBFF_BEGIN_NAMESPACE
48 int noise_model = NOISE_NA;
49 double current_shift = 0.0;
50 double acquisition_time = std::numeric_limits<double>::max();
51 std::vector<double> dx = {1.0};
52 std::vector<double> x = std::vector<double>();
53 std::vector<double> _y;
54 std::vector<double> y = std::vector<double>();
55 std::vector<double> ey = std::vector<double>();
64 void compute_noise(
int noise_model = NOISE_POISSON);
78 static std::vector<double> shift_array(
79 double *input,
int n_input,
108 std::vector<double> get_dx();
120 void resize(
size_t n,
double v=0.0,
double dx=1.0);
129 double get_average_dx();
138 std::vector<double>& get_x();
140 void set_x(
const std::vector<double>& v);
147 void set_x(
double* input,
int n_input);
153 std::vector<double>& get_y();
159 void set_y(std::vector<double>& v);
166 void set_y(
double* input,
int n_input);
172 std::vector<double>& get_ey();
178 void set_ey(std::vector<double>& v);
185 void set_ey(
double* input,
int n_input);
191 void set_acquisition_time(
double v);
197 double get_acquisition_time()
const;
203 void set_shift(
double v);
215 std::string get_json()
const;
222 int read_json(std::string json_string);
225 std::vector<double> x = std::vector<double>(),
226 std::vector<double> y = std::vector<double>(),
227 std::vector<double> ey = std::vector<double>(),
228 double acquisition_time = std::numeric_limits<double>::max(),
229 int noise_model = NOISE_POISSON,
239 double sum(
int start=0,
int stop=-1);
248 void apply_simple_moving_average(
int start,
int stop,
int n_window=5,
bool normalize=
false);
353 #endif //IMPBFF_DECAYCURVE_H
A decorator that adds pile-up effects to a DecayCurve object.
Decay routines (e.g. convolution, scaling, and lamp shift routines)
A decay modifier to apply linearization to a DecayCurve.
A class for scaling a DecayCurve by a constant factor and subtracting a constant background value...
Class for scoring model fluorescence decay.
Class for fluorescence decay curves.
VectorD< D > operator*(double s, VectorD< D > o)
The DecayPattern class represents a decay pattern with a constant offset and a background pattern...