Simplex optimization. More...
#include <optimizer.h>
Public Member Functions | |
PsiOptimizer (const PsiPsychometric *model, const PsiData *data) | |
set up everything | |
~PsiOptimizer (void) | |
clean up everything | |
std::vector< double > | optimize (const PsiPsychometric *model, const PsiData *data, const std::vector< double > *startingvalue=NULL) |
Start the optimization process. |
Simplex optimization.
PsiOptimizer::PsiOptimizer | ( | const PsiPsychometric * | model, | |
const PsiData * | data | |||
) |
set up everything
model | model to be fitted (this is needed at this point only to determine the amount of internal memory that is required) | |
data | data to be fitted (this is needed at this point only to determine the amount of internal memory that is required) |
std::vector< double > PsiOptimizer::optimize | ( | const PsiPsychometric * | model, | |
const PsiData * | data, | |||
const std::vector< double > * | startingvalue = NULL | |||
) |
Start the optimization process.
model | model to be fitted | |
data | data to be fitted | |
startingvalue | starting value for optimization --- if this is longer the the number of parameters in the model, the additional values are used to span the simplex |