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.
43 lines
1.0 KiB
43 lines
1.0 KiB
15 years ago
|
#ifndef POLYNOMIALA3D_HPP
|
||
|
#define POLYNOMIALA3D_HPP
|
||
15 years ago
|
|
||
|
#include "../AttractorKernel.hpp"
|
||
|
|
||
15 years ago
|
class PolynomialA3D : public AttractorKernel {
|
||
|
// of course this can be seen as a subclasse of Polynomial
|
||
15 years ago
|
|
||
|
double * myParameters;
|
||
|
|
||
|
double * vectorNew;
|
||
|
double * vectorOld;
|
||
|
|
||
|
void init();
|
||
|
|
||
|
public:
|
||
|
|
||
15 years ago
|
PolynomialA3D();
|
||
15 years ago
|
|
||
|
// parameters are stored in a array of doubles
|
||
|
// if you want to use other types, use the properties
|
||
|
virtual double& parameter(const unsigned int index);
|
||
|
virtual double*& parameters();
|
||
|
|
||
|
// get properties of the attractor
|
||
|
// such as the dimension
|
||
|
// you should delete the void pointer if you used it
|
||
|
virtual void * getProperty(const string identifier);
|
||
|
virtual void setProperty(const string identifier, const void * value);
|
||
|
|
||
|
// iterate his formula
|
||
|
// vector pointers will be swapped! so new remains new and old remains old
|
||
|
virtual void iterate();
|
||
|
|
||
|
// getter functions for teh resulta
|
||
|
virtual double * & vector();
|
||
|
virtual double * & previousVector();
|
||
|
|
||
|
};
|
||
|
|
||
15 years ago
|
#endif // POLYNOMIALA3D_HPP
|
||
15 years ago
|
|