change: code style
This commit is contained in:
parent
1e2b51abe3
commit
abd731a5ae
@ -3,13 +3,19 @@
|
||||
#ifndef bind_handler_h
|
||||
#define bind_handler_h
|
||||
|
||||
#include "GaussFit.h"
|
||||
#include "FileHandler.h"
|
||||
#include "GaussFit.h"
|
||||
|
||||
class BindHandler {
|
||||
public:
|
||||
BindHandler();
|
||||
BindHandler(){};
|
||||
~BindHandler(){};
|
||||
|
||||
public:
|
||||
std::vector<FileHandler> data;
|
||||
|
||||
public:
|
||||
void addData(FileHandler);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -30,16 +30,16 @@ public:
|
||||
GaussFit(){};
|
||||
~GaussFit(){};
|
||||
|
||||
public:
|
||||
double* parma = new double[3];
|
||||
std::vector<Eigen::Vector2d> data;
|
||||
|
||||
public:
|
||||
void addData(double x, double y);
|
||||
double* fit(int type_ = 0);
|
||||
double RSquare();
|
||||
int getTotal();
|
||||
void draw(std::string title = "./Figure.png");
|
||||
|
||||
public:
|
||||
double* parma = new double[3];
|
||||
std::vector<Eigen::Vector2d> data;
|
||||
};
|
||||
|
||||
void GaussFit::addData(double x, double y) { data.push_back(Eigen::Vector2d(x, y)); }
|
||||
|
Binary file not shown.
Binary file not shown.
@ -20,7 +20,6 @@ public:
|
||||
double (*stdF)(std::vector<Eigen::Vector2d> data) = nullptr);
|
||||
~SigmaClip(){};
|
||||
std::vector<Eigen::Vector2d> clip(std::vector<Eigen::Vector2d> data);
|
||||
std::vector<Eigen::Vector2d> clipN(std::vector<Eigen::Vector2d> data);
|
||||
|
||||
private:
|
||||
void computeBound(std::vector<Eigen::Vector2d> data);
|
||||
|
Loading…
Reference in New Issue
Block a user