My old project for strange attractors
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

55 lines
953 B

#ifndef ATTRACTOR_HPP
#define ATTRACTOR_HPP
#include <vector>
//#include "Vector.hpp"
//#include "Parameters.hpp"
#include "Projector.hpp"
#include "AttractorKernel.hpp"
enum FormulaChoice {
POLY_N, LORENZ, POLY_A, POLY_2, LOGISTIC, UNRAVEL
};
class Projector;
// TODO : Verschillende classas AttractorSystem en Attractor maken?
class Attractor {
public:
unsigned int dim;
unsigned int par;
unsigned int orde;
FormulaChoice formula;
double * param;
double * point;
double * new_point;
vector<Projector *> projectors;
public:
Attractor();
Attractor(const char* const filename);
void init(unsigned int dimensions, FormulaChoice formula, unsigned int orde);
15 years ago
void init_range();
// TODO : lyapunov exponent uit rekenen
bool is_chaos();
// TODO : optimaliseren voor lage graads veeltermen
void iterate();
void plot();
void output();
};
#endif // ATTRACTOR_HPP