NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include "parser_functions.hpp"
#include "../../kernel.hpp"
#include "fitcontroller.hpp"
#include "../interval.hpp"
Go to the source code of this file.
Classes | |
struct | FittingData |
Functions | |
static std::vector< double > | evaluateFittingParams (FittingData &fitData, std::string &sCmd, Indices &_idx, std::string &sTeXExportFile, bool &bTeXExport, bool &bMaskDialog) |
static mu::varmap_type | getFittingParameters (FittingData &fitData, const mu::varmap_type &varMap, const std::string &sCmd) |
static int | getDataForFit (const std::string &sCmd, std::string &sDimsForFitLog, FittingData &fitData) |
static void | removeObsoleteParentheses (std::string &sFunction) |
static bool | calculateChiMap (std::string sFunctionDefString, const std::string &sFuncDisplay, Indices &_idx, mu::varmap_type &varMap, mu::varmap_type ¶msMap, FittingData &fitData, std::vector< double > vInitialVals) |
static std::string | applyFitAlgorithm (Fitcontroller &_fControl, FittingData &fitData, mu::varmap_type ¶msMap, const std::string &sFuncDisplay, const std::string &sCmd) |
static void | calculateCovarianceData (FittingData &fitData, double dChisq, size_t paramsMapSize) |
static std::string | getFitOptionsTable (Fitcontroller &_fControl, FittingData &fitData, const std::string &sFuncDisplay, const std::string &sFittedFunction, const std::string &sDimsForFitLog, double dChisq, const mu::varmap_type ¶msMap, size_t nSize, bool forFitLog) |
static std::string | getParameterTable (FittingData &fitData, mu::varmap_type ¶msMap, const std::vector< double > &vInitialVals, size_t windowSize, const std::string &sPMSign, bool forFitLog) |
static std::string | constructCovarianceMatrix (FittingData &fitData, size_t paramsMapSize, bool forFitLog) |
static double | calculatePercentageAvgAndCreateParserVariables (FittingData &fitData, mu::varmap_type ¶msMap, double dChisq) |
static std::string | getFitAnalysis (Fitcontroller &_fControl, FittingData &fitData, double dNormChisq, double dAverageErrorPercentage, bool noOverfitting) |
static void | createTeXExport (Fitcontroller &_fControl, const std::string &sTeXExportFile, const std::string &sCmd, mu::varmap_type ¶msMap, FittingData &fitData, const std::vector< double > &vInitialVals, size_t nSize, const std::string &sFitAnalysis, const std::string &sFuncDisplay, const std::string &sFittedFunction, double dChisq) |
bool | fitDataSet (string &sCmd, Parser &_parser, MemoryManager &_data, FunctionDefinitionManager &_functions, const Settings &_option) |
|
static |
Definition at line 1277 of file fitting.cpp.
References _lang, FittingData::bUseErrors, FittingData::dPrecision, Fitcontroller::fit(), SyntaxError::FUNCTION_CANNOT_BE_FITTED, Language::get(), NumeReKernel::getInstance(), NumeReKernel::getSettings(), FittingData::nDim, FittingData::nFitVars, FittingData::nMaxIterations, NumeReKernel::printPreFmt(), FittingData::sFitFunction, FittingData::sRestrictions, Settings::systemPrints(), FittingData::vx, FittingData::vy, FittingData::vy_w, FittingData::vz, and FittingData::vz_w.
Referenced by fitDataSet().
|
static |
Definition at line 1144 of file fitting.cpp.
References _lang, FittingData::b1DChiMap, FittingData::bUseErrors, Indices::col, FunctionDefinitionManager::defineFunc(), FittingData::dPrecision, Fitcontroller::fit(), Language::get(), NumeReKernel::getDefinitions(), FunctionDefinitionManager::getDefinitionString(), MemoryManager::getElement(), Fitcontroller::getFitChi(), FunctionDefinitionManager::getFunctionIndex(), NumeReKernel::getInstance(), NumeReKernel::getMemoryManager(), NumeReKernel::getParser(), NumeReKernel::getSettings(), FunctionDefinitionManager::isDefined(), NumeReKernel::issueWarning(), MemoryManager::isValidElement(), LineBreak(), FittingData::nDim, FittingData::nFitVars, FittingData::nMaxIterations, NumeReKernel::print(), NumeReKernel::printPreFmt(), Indices::row, FittingData::sChiMap, FittingData::sChiMap_Vars, MemoryManager::setHeadLineElement(), FittingData::sFitFunction, VectorIndex::size(), FittingData::sRestrictions, Settings::systemPrints(), toString(), FittingData::vx, FittingData::vy, FittingData::vy_w, FittingData::vz, FittingData::vz_w, and MemoryManager::writeToTable().
Referenced by fitDataSet().
|
static |
Definition at line 1341 of file fitting.cpp.
References FittingData::bUseErrors, FittingData::nFitVars, FittingData::vx, FittingData::vz, and FittingData::vz_w.
Referenced by fitDataSet().
|
static |
Definition at line 1510 of file fitting.cpp.
References date::abs(), FittingData::bSaveErrors, mu::ParserBase::Eval(), NumeReKernel::getInstance(), NumeReKernel::getParser(), mu::ParserBase::SetExpr(), toCmdString(), and FittingData::vz_w.
Referenced by fitDataSet().
|
static |
Definition at line 1429 of file fitting.cpp.
References strfill(), toString(), and FittingData::vz_w.
Referenced by fitDataSet().
|
static |
Definition at line 1608 of file fitting.cpp.
References _lang, date::abs(), FittingData::bUseErrors, SyntaxError::CANNOT_OPEN_TARGET, FittingData::dPrecision, Language::get(), Fitcontroller::getFitChi(), Fitcontroller::getIterations(), getTimeStamp(), SyntaxError::invalid_position, FittingData::ivl, FittingData::nFitVars, FittingData::nMaxIterations, NumeReKernel::printPreFmt(), replaceToTeX(), FittingData::restricted, FittingData::sRestrictions, toString(), date::detail::trunc(), and FittingData::vz_w.
Referenced by fitDataSet().
|
static |
Definition at line 406 of file fitting.cpp.
References date::abs(), FittingData::bNoParams, FittingData::bSaveErrors, FunctionDefinitionManager::call(), Indices::col, MemoryManager::containsTablesOrClusters(), convertVectorToExpression(), FittingData::dPrecision, eraseToken(), mu::ParserBase::Eval(), evaluateIndices(), findParameter(), SyntaxError::FUNCTION_CANNOT_BE_FITTED, SyntaxError::FUNCTION_ERROR, getArgAtPos(), getDataElements(), NumeReKernel::getDefinitions(), MemoryManager::getHeadLineElement(), getIndices(), NumeReKernel::getInstance(), getMatchingParenthesis(), NumeReKernel::getMemoryManager(), NumeReKernel::getParser(), NumeReKernel::getSettings(), NumeReKernel::getStringParser(), SyntaxError::INVALID_INDEX, SyntaxError::invalid_position, mu::isinf(), mu::isnan(), NumeRe::StringParser::isStringExpression(), isValidIndexSet(), FittingData::ivl, FittingData::nMaxIterations, SyntaxError::NO_FUNCTION_FOR_FIT, readAndParseIntervals(), FittingData::restricted, mu::rint(), Indices::row, FittingData::sChiMap, FittingData::sChiMap_Vars, mu::ParserBase::SetExpr(), FittingData::sFitFunction, VectorIndex::size(), FittingData::sParams, FittingData::sRestrictions, StripSpaces(), VectorIndex::to_string(), and FileSystem::ValidFileName().
Referenced by fitDataSet().
bool fitDataSet | ( | string & | sCmd, |
Parser & | _parser, | ||
MemoryManager & | _data, | ||
FunctionDefinitionManager & | _functions, | ||
const Settings & | _option | ||
) |
Definition at line 73 of file fitting.cpp.
References _lang, applyFitAlgorithm(), FittingData::b1DChiMap, FittingData::bNoParams, FittingData::bSaveErrors, FittingData::bUseErrors, calculateChiMap(), calculateCovarianceData(), calculatePercentageAvgAndCreateParserVariables(), SyntaxError::CANNOT_BE_A_FITTING_PARAM, SyntaxError::CANNOT_OPEN_FITLOG, constructCovarianceMatrix(), MemoryManager::containsTablesOrClusters(), createTeXExport(), FunctionDefinitionManager::defineFunc(), FittingData::dPrecision, mu::ParserBase::Eval(), evaluateFittingParams(), findCommand(), SyntaxError::FITFUNC_NOT_CONTAINS, Language::get(), Fitcontroller::getCovarianceMatrix(), getDataForFit(), FunctionDefinitionManager::getDefinitionString(), getFitAnalysis(), Fitcontroller::getFitChi(), Fitcontroller::getFitFunction(), getFitOptionsTable(), getFittingParameters(), FunctionDefinitionManager::getFunctionIndex(), getParameterTable(), getTimeStamp(), mu::ParserBase::GetUsedVar(), Settings::getWindow(), IntervalSet::intervals, SyntaxError::invalid_position, FunctionDefinitionManager::isDefined(), NumeReKernel::issueWarning(), FittingData::ivl, LineBreak(), make_hline(), FittingData::nDim, FittingData::nFitVars, FittingData::nMaxIterations, SyntaxError::NO_DATA_FOR_FIT, SyntaxError::NO_PARAMS_FOR_FIT, SyntaxError::OVERFITTING_ERROR, NumeReKernel::print(), NumeReKernel::printPreFmt(), reduceLogFilesize(), removeObsoleteParentheses(), FittingData::restricted, FittingData::sChiMap, FittingData::sChiMap_Vars, mu::ParserBase::SetExpr(), FittingData::sFitFunction, FittingData::sParams, FittingData::sRestrictions, strfill(), StripSpaces(), Settings::systemPrints(), NumeReKernel::toggleTableStatus(), toSystemCodePage(), toUpperCase(), FileSystem::ValidFileName(), FittingData::vx, FittingData::vy, FittingData::vz, and FittingData::vz_w.
Referenced by cmd_fit().
|
static |
Definition at line 751 of file fitting.cpp.
References _lang, date::abs(), VectorIndex::back(), FittingData::bUseErrors, Indices::col, VectorIndex::front(), Language::get(), NumeRe::ClusterManager::getCluster(), MemoryManager::getCols(), NumeRe::FileAdapter::getDataFileName(), getDataFromObject(), MemoryManager::getElement(), getIndicesForPlotAndFit(), NumeReKernel::getInstance(), MemoryManager::getLines(), NumeReKernel::getMemoryManager(), SyntaxError::invalid_position, VectorIndex::isExpanded(), mu::isnan(), VectorIndex::isOpenEnd(), MemoryManager::isValidElement(), isValidValue(), FittingData::ivl, VectorIndex::last(), MemoryManager::max(), MemoryManager::min(), FittingData::nFitVars, MemoryManager::num(), Indices::row, VectorIndex::setRange(), NumeRe::Cluster::size(), VectorIndex::size(), VectorIndex::subidx(), SyntaxError::TOO_FEW_COLS, toString(), FittingData::vx, FittingData::vy, FittingData::vy_w, FittingData::vz, and FittingData::vz_w.
Referenced by fitDataSet().
|
static |
Definition at line 1560 of file fitting.cpp.
References _lang, FittingData::bUseErrors, Language::get(), Fitcontroller::getIterations(), FittingData::nFitVars, and FittingData::nMaxIterations.
Referenced by fitDataSet().
|
static |
Definition at line 1371 of file fitting.cpp.
References _lang, FittingData::bUseErrors, FittingData::dPrecision, Language::get(), Fitcontroller::getFitChi(), Fitcontroller::getIterations(), FittingData::ivl, FittingData::nFitVars, FittingData::nMaxIterations, FittingData::restricted, FittingData::sRestrictions, and toString().
Referenced by fitDataSet().
|
static |
Definition at line 681 of file fitting.cpp.
References FittingData::bNoParams, mu::ParserBase::Eval(), NumeReKernel::getInstance(), getMatchingParenthesis(), NumeReKernel::getParser(), mu::ParserBase::GetUsedVar(), SyntaxError::invalid_position, SyntaxError::NO_PARAMS_FOR_FIT, mu::ParserBase::SetExpr(), and FittingData::sParams.
Referenced by fitDataSet().
|
static |
Definition at line 1469 of file fitting.cpp.
References date::abs(), NumeReKernel::getInstance(), Settings::getPrecision(), NumeReKernel::getSettings(), strfill(), toString(), and FittingData::vz_w.
Referenced by fitDataSet().
|
static |
Definition at line 1121 of file fitting.cpp.
References getMatchingParenthesis(), and StripSpaces().
Referenced by fitDataSet().