13#ifdef SEDSAT3_ENABLE_GA
74 bool Execute(
const std::string& command,
const std::map<std::string, std::string>& arguments);
183 bool ResolveRandomSeed(std::map<std::string, std::string>& arguments, std::uint64_t& seed);
187#ifdef SEDSAT3_ENABLE_GA
188 std::unique_ptr<CGA<SourceSinkData>> GA;
190 std::unique_ptr<CMCMC<SourceSinkData>>
MCMC;
195#ifdef SEDSAT3_ENABLE_GA
210 bool ExecuteGA(
const std::map<std::string, std::string>& arguments);
225 bool ExecuteGA_FixedProfile(
const std::map<std::string, std::string>& arguments);
240 bool ExecuteGA_NoTargets(
const std::map<std::string, std::string>& arguments);
306 bool ExecuteMLR(
const std::map<std::string, std::string>& arguments);
356 bool ExecuteDFA(
const std::map<std::string, std::string>& arguments);
391 bool ExecuteDFAM(
const std::map<std::string, std::string>& arguments);
411 bool ExecuteSDFA(
const std::map<std::string, std::string>& arguments);
431 bool ExecuteSDFAM(
const std::map<std::string, std::string>& arguments);
603 bool ExecuteBoxCox(
const std::map<std::string, std::string>& arguments);
642 bool ExecuteEDP(
const std::map<std::string, std::string>& arguments);
662 bool ExecuteEDPM(
const std::map<std::string, std::string>& arguments);
685 bool ExecuteANOVA(
const std::map<std::string, std::string>& arguments);
Abstract environment that an analysis runs inside.
bool ExecuteOutlierAnalysis(const std::map< std::string, std::string > &arguments)
Executes outlier detection analysis for a source/target group.
bool ExecuteTestCMBBayesian(const std::map< std::string, std::string > &arguments)
Executes MCMC test with a simple analytical model.
bool ExecuteCMBBayesian(const std::map< std::string, std::string > &arguments)
Executes Bayesian Chemical Mass Balance using MCMC sampling.
bool ExecuteDFAM(const std::map< std::string, std::string > &arguments)
Executes multi-way Discriminant Function Analysis across all groups.
bool ExecuteDFA(const std::map< std::string, std::string > &arguments)
Executes Discriminant Function Analysis between two groups.
bool ExecuteSDFAM(const std::map< std::string, std::string > &arguments)
Executes multi-way Stepwise Discriminant Function Analysis across all groups.
bool ExecuteBoxCox(const std::map< std::string, std::string > &arguments)
Calculates optimal Box-Cox transformation parameters.
bool ExecuteKolmogorovSmirnovIndividual(const std::map< std::string, std::string > &arguments)
Executes Kolmogorov-Smirnov test for a single constituent in a group.
void ReportBoxCoxSkips(SourceSinkData &dataset, const std::string &group, const std::string &consequence)
Warns about constituents the Box-Cox transformation leaves untransformed.
bool CheckNegativeElements(SourceSinkData *data=nullptr)
Validates that all element concentrations are non-negative.
bool ExecuteCMBBayesianBatch(const std::map< std::string, std::string > &arguments)
Executes Bayesian Chemical Mass Balance across all target samples.
bool ResolveRandomSeed(std::map< std::string, std::string > &arguments, std::uint64_t &seed)
Resolves the "Random seed" argument of an MCMC analysis.
bool ExecuteAutoSelect(const std::map< std::string, std::string > &arguments)
Executes automatic element selection based on discriminant power.
bool ExecuteSDFA(const std::map< std::string, std::string > &arguments)
Executes Stepwise Discriminant Function Analysis between two groups.
Results * GetResults()
Creates and returns a heap-allocated copy of current results.
bool Execute(const std::string &command, const std::map< std::string, std::string > &arguments)
Executes a specified analysis command with given parameters.
bool ExecuteBracketingAnalysisBatch(const std::map< std::string, std::string > &arguments)
Executes bracketing analysis across all target samples.
void SetWorkingFolder(const QString &wf)
Sets the working directory for output files.
bool ExecuteANOVA(const std::map< std::string, std::string > &arguments)
Executes Analysis of Variance (ANOVA) for element discrimination.
bool ExecuteErrorAnalysis(const std::map< std::string, std::string > &given_arguments)
Executes bootstrap error analysis for uncertainty quantification.
AnalysisHost * host
Non-owning pointer to the running environment.
QString workingfolder
Output directory path.
bool ExecuteSourceVerify(const std::map< std::string, std::string > &arguments)
Executes source verification analysis.
void SetData(SourceSinkData *_data)
Sets the SourceSinkData for analysis.
bool ExecuteMLR(const std::map< std::string, std::string > &arguments)
Executes multiple linear regression versus organic matter and particle size.
Conductor(AnalysisHost *host)
Constructs a Conductor that reports through host.
bool ExecuteDistributionFitting(const std::map< std::string, std::string > &arguments)
Executes distribution fitting analysis for a constituent.
bool ExecuteLevenbergMarquardtBatch(const std::map< std::string, std::string > &arguments)
Executes Levenberg-Marquardt optimization across all target samples.
bool ExecuteKolmogorovSmirnov(const std::map< std::string, std::string > &arguments)
Executes Kolmogorov-Smirnov goodness-of-fit test for a source/target group.
SourceSinkData * Data()
Returns pointer to the current SourceSinkData.
SourceSinkData * data
Non-owning pointer to analysis data.
bool ExecuteSDFAOnevsRest(const std::map< std::string, std::string > &arguments)
Executes Stepwise Discriminant Function Analysis for one group versus all others.
bool ExecuteBracketingAnalysis(const std::map< std::string, std::string > &arguments)
Executes bracketing analysis for a single target sample.
bool ExecuteDFAOnevsRest(const std::map< std::string, std::string > &arguments)
Executes Discriminant Function Analysis for one group versus all others.
SourceSinkData BoxCoxTransformedWithReport(SourceSinkData &dataset)
Box-Cox transforms data with optimal lambdas, reporting skipped constituents.
bool ExecuteCovarianceMatrix(const std::map< std::string, std::string > &arguments)
Calculates covariance matrix for a source or target group.
Results results
Current analysis results (cleared each Execute).
QString WorkingFolder() const
Returns the current working directory path.
void ReportNegativeContributions(const std::vector< std::string > &offenders)
Reports negative source contributions through the AnalysisHost.
bool ExecuteOMSizeCorrect(const std::map< std::string, std::string > &arguments)
Executes organic matter and particle size correction.
bool ExecuteLevenbergMarquardt(const std::map< std::string, std::string > &arguments)
Executes Levenberg-Marquardt nonlinear optimization.
bool ExecuteEDP(const std::map< std::string, std::string > &arguments)
Calculates two-way element discriminant power between two groups.
bool ExecuteEDPM(const std::map< std::string, std::string > &arguments)
Calculates multi-way element discriminant power across all groups.
bool ExecuteCorrelationMatrix(const std::map< std::string, std::string > &arguments)
Calculates correlation matrix for a source or target group.
std::unique_ptr< CMCMC< SourceSinkData > > MCMC
MCMC sampler (owned).