-
Notifications
You must be signed in to change notification settings - Fork 0
/
util.h
30 lines (24 loc) · 1.39 KB
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef UtilH
#define UtilH
#include <vector>
#include <valarray>
#include "common.h"
#include "functions.h"
#include "functions2.h"
#include "approximator.h"
#include "approximator2.h"
void LinearParameters(double x, double y, double &x1, double &y1, unsigned char func, signed char n0);
void LinearData(const vector<point> &src_data, vector<point> &linear_data, signed char n0, unsigned char f);
void LinearData(const vector<point> &src_data, vector<point3d> &linear_data_2, signed char n0, unsigned char f);
void CalculateParameters(double a, double b, double &a1, double &b1, unsigned char func);
int CalculateData(vector<point> &src_data, vector<point> &dst_data, double &a1, double &b1, double &b2, signed char n0, vector<double> &mbx, unsigned char f);
void CalculateCoefficients(const vector<point> &src_data, const vector<point> &dst_data, const vector<double> &mbx, signed char n0, double &delta, double &sigma, double &r, double &nu, unsigned char f);
point CalculateMax(const vector<point> &data);
point CalculateMin(const vector<point> &data);
point GetLesserThan(const vector<point> &data, double x);
point GetGreaterThan(const vector<point> &data, double x);
point3d GetParameters(double v1, double v2);
double Interpolation(double x1, double x2, double y1, double y2, double xar);
double GetParameter(const vector<point> &data, double xparam);
unsigned char Epsilon(const vector<point> &data);
#endif