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.
45 lines
1023 B
45 lines
1023 B
/*
|
|
* KernelBasicParameter.hpp
|
|
* AwesomeAttractor
|
|
*
|
|
* Created by Joshua Moerman on 18-07-10.
|
|
* Copyright 2010 Rodo. All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef KERNELBASICPARAMETER_HPP
|
|
#define KERNELBASICPARAMETER_HPP
|
|
|
|
#include "../AttractorKernel.hpp"
|
|
|
|
/*
|
|
This is a partial default implementation of the abstract AttractorKernel class
|
|
you can easily use the constructor to initialise the parameters and stuff...
|
|
*/
|
|
class KernelBasicParameter : virtual public AttractorKernel {
|
|
private:
|
|
|
|
void init();
|
|
|
|
protected:
|
|
|
|
unsigned int myNumberOfParameters;
|
|
|
|
double * parameters;
|
|
|
|
KernelBasicParameter(const unsigned int numberOfParameters);
|
|
|
|
void resetNumberOfParameters(const unsigned int numberOfParameters);
|
|
|
|
public:
|
|
|
|
// parameters are stored in a array of doubles
|
|
// if you want to use other types, use the properties
|
|
virtual double & operator[](const unsigned int index);
|
|
virtual double const & operator[](const unsigned int index) const;
|
|
|
|
virtual unsigned int numberOfParameters() const;
|
|
|
|
};
|
|
|
|
#endif
|