Moving Window

aboucher - Posted on 02 February 2009

Throughout this text the example of a moving average algorithm will be used. The class for the moving average algorithm is defined as follows:

#include <GsTLAppli/geostat/geostat_algo.h>

class MovingAverage : public Geostat_algo {
  virtual bool initialize( const Parameters_handler* parameters,
                           Error_messages_handler* errors );

  // Runs the algorithm.
  virtual int execute() ;
  // Tells the name of the algorithm
  virtual std::string name() const { return "moving_average"; }

  static Named_interface* create_new_interface(std::string&);

  // declare here all the parameters used by the algorithm
  // (i.e. the execute function)