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 LORENZ_HPP
|
|
|
|
#define LORENZ_HPP
|
|
|
|
|
|
|
|
#include "../AttractorKernel.hpp"
|
|
|
|
|
|
|
|
class Lorenz3D : public AttractorKernel {
|
|
|
|
private:
|
|
|
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Lorenz3D();
|
|
|
|
|
|
|
|
virtual void operator()();
|
|
|
|
|
|
|
|
virtual void generate_random_parameters(){
|
|
|
|
parameters[0] = rand() / double(RAND_MAX) * 0.01;
|
|
|
|
parameters[1] = rand() / double(RAND_MAX) * 10.0 + 23.0;
|
|
|
|
parameters[2] = rand() / double(RAND_MAX) * 4.0 + 8.0;
|
|
|
|
parameters[3] = rand() / double(RAND_MAX) * 1.5 + 2.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LORENZ_HPP
|
|
|
|
|