NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
command_implementations.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2019 Erik Haenel et al.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17******************************************************************************/
18
19#ifndef COMMAND_IMPLEMENTATIONS_HPP
20#define COMMAND_IMPLEMENTATIONS_HPP
21
22#include "../datamanagement/memorymanager.hpp"
23#include "../ParserLib/muParser.h"
24#include "../settings.hpp"
25#include "../commandlineparser.hpp"
26#include "define.hpp"
27
28#include <string>
29#include <vector>
30
31bool integrate(CommandLineParser& cmdParser);
32bool integrate2d(CommandLineParser& cmdParser);
33bool differentiate(CommandLineParser& cmdParser);
34bool findExtrema(CommandLineParser& cmdParser);
35bool findZeroes(CommandLineParser& cmdParser);
36void taylor(CommandLineParser& cmdParser);
37bool fitDataSet(std::string& sCmd, mu::Parser& _parser, MemoryManager& _data, FunctionDefinitionManager& _functions, const Settings& _option);
40bool evalPoints(CommandLineParser& cmdParser);
41bool createDatagrid(CommandLineParser& cmdParser);
42bool writeAudioFile(CommandLineParser& cmdParser);
43bool readAudioFile(CommandLineParser& cmdParser);
44bool seekInAudioFile(CommandLineParser& cmdParser);
46bool analyzePulse(CommandLineParser& cmdParser);
48void boneDetection(CommandLineParser& cmdParser);
49bool calculateSplines(CommandLineParser& cmdParser);
50void rotateTable(CommandLineParser& cmdParser);
52void urlExecute(CommandLineParser& cmdParser);
53
54#endif // COMMAND_IMPLEMENTATIONS_HPP
55
56
This class provides the functionality to extract the different components of a command line into the ...
This class implements the function definition managing instance.
Definition: define.hpp:74
This class represents the central memory managing instance. It will handle all tables and clusters,...
This class manages the setting values of the internal (kernel) settings of this application.
Definition: settings.hpp:663
Mathematical expressions parser.
Definition: muParser.h:51
bool findZeroes(CommandLineParser &cmdParser)
This function is a wrapper to the actual zeros localisation function localizeZero() further below.
void urlExecute(CommandLineParser &cmdParser)
This function implements the url command providing an interface to http(s) and (s)ftp URLs.
bool writeAudioFile(CommandLineParser &cmdParser)
This function creates a WAVE file from the selected data set.
bool shortTimeFourierAnalysis(CommandLineParser &cmdParser)
This function performs the short-time fourier analysis on the passed data set.
bool integrate2d(CommandLineParser &cmdParser)
Calculate the integral of a function in two dimensions.
void rotateTable(CommandLineParser &cmdParser)
This function rotates a table, an image or a datagrid around a specified angle.
bool analyzePulse(CommandLineParser &cmdParser)
This function performs a pulse analysis on the selected data set.
bool createDatagrid(CommandLineParser &cmdParser)
This function calculates a datagrid from passed functions or (x-y-z) data values.
bool readAudioFile(CommandLineParser &cmdParser)
Reads either the audio file meta information or the whole audio file to memory.
bool fastWaveletTransform(CommandLineParser &cmdParser)
This function calculates the fast wavelet transform of the passed data set.
void boneDetection(CommandLineParser &cmdParser)
This function is the implementation of the detect command.
bool differentiate(CommandLineParser &cmdParser)
Calculate the numerical differential of the passed expression or data set.
bool findExtrema(CommandLineParser &cmdParser)
This function is a wrapper to the actual extrema localisation function localizeExtremum() further bel...
bool seekInAudioFile(CommandLineParser &cmdParser)
Seek a position in an audiofile and extract a length of samples from it.
void taylor(CommandLineParser &cmdParser)
This function approximates the passed expression using Taylor's method.
bool calculateSplines(CommandLineParser &cmdParser)
This function approximates the passed data set using cubic splines.
bool fitDataSet(std::string &sCmd, mu::Parser &_parser, MemoryManager &_data, FunctionDefinitionManager &_functions, const Settings &_option)
Definition: fitting.cpp:73
bool regularizeDataSet(CommandLineParser &cmdParser)
This function regularizes the samples of a defined x-y-data array such that DeltaX is equal for every...
bool integrate(CommandLineParser &cmdParser)
Calculate the integral of a function or a data set in a single dimension.
void particleSwarmOptimizer(CommandLineParser &cmdParser)
This function implements a particle swarm optimizer in up to four dimensions (depending on the number...
bool evalPoints(CommandLineParser &cmdParser)
This function samples a defined expression in an array of discrete values.
bool fastFourierTransform(CommandLineParser &cmdParser)
This function calculates the fast fourier transform of the passed data set.