|
|
|
#ifndef LORENZ_HPP
|
|
|
|
#define LORENZ_HPP
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <cassert>
|
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#include "../AttractorKernel.hpp"
|
|
|
|
#include "BasicKernel.h"
|
|
|
|
|
|
|
|
class Lorenz3D : public BasicKernel {
|
|
|
|
|
|
|
|
// double * myParameters;
|
|
|
|
//
|
|
|
|
// double * vectorNew;
|
|
|
|
// double * vectorOld;
|
|
|
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Lorenz3D();
|
|
|
|
Lorenz3D(const unsigned int dimensions);
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
|
|
|
|
virtual unsigned int getNumberOfParameters();
|
|
|
|
|
|
|
|
// 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();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LORENZ_HPP
|
|
|
|
|