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.
|
|
|
#ifndef POLYNOMIAL_HPP
|
|
|
|
#define POLYNOMIAL_HPP
|
|
|
|
|
|
|
|
#include "../AttractorKernel.hpp"
|
|
|
|
|
|
|
|
class Polynomial : public AttractorKernel {
|
|
|
|
private:
|
|
|
|
|
|
|
|
unsigned int orde;
|
|
|
|
|
|
|
|
void init();
|
|
|
|
unsigned int calculateNumberOfParameters();
|
|
|
|
void recur(unsigned int curr_dimension, unsigned int prev_i, unsigned int n, unsigned int& m, double prev_product=1.0);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Polynomial();
|
|
|
|
Polynomial(const unsigned int dimensions, const unsigned int orde);
|
|
|
|
|
|
|
|
virtual void operator()();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // POLYNOMIAL_HPP
|
|
|
|
|