7 #ifndef Tomato_OXModelT1ADAPTERLMFITLEASTSQUARES_H 8 #define Tomato_OXModelT1ADAPTERLMFITLEASTSQUARES_H 10 #include "CmakeConfigForTomato.h" 17 template<
typename TYPE>
18 class ModelT1AdapterLmfitLeastSquares {
25 calcLSResiduals(
const double *parameters,
int nSamples,
const void *data_void,
double *residuals,
int *info ){
27 Model<TYPE> *model =
const_cast<Model<TYPE> *
>(
reinterpret_cast<const Model<TYPE> *
>(data_void));
29 model->calcLSResiduals(parameters, residuals);
40 #endif //Tomato_OXModelT1ADAPTERLMFITLEASTSQUARES_H
Definition: OxCalculator.h:19