Program Listing for File SpatialMonoscaleAlgorithm.h

Return to documentation for file (include/gwmodelpp/SpatialMonoscaleAlgorithm.h)

#ifndef SPATIALMONOSCALEALGORITHM_H
#define SPATIALMONOSCALEALGORITHM_H

#include "SpatialAlgorithm.h"
#include "spatialweight/SpatialWeight.h"

namespace gwm
{

class SpatialMonoscaleAlgorithm : public SpatialAlgorithm
{
public:

    SpatialMonoscaleAlgorithm() {}

    SpatialMonoscaleAlgorithm(const SpatialWeight& spatialWeight, arma::mat coords) : SpatialAlgorithm(coords)
    {
        mSpatialWeight = spatialWeight;
    }

    virtual ~SpatialMonoscaleAlgorithm() {}

public:

    const SpatialWeight& spatialWeight() const
    {
        return mSpatialWeight;
    }

    void setSpatialWeight(const SpatialWeight &spatialWeight)
    {
        mSpatialWeight = spatialWeight;
    }

    void createDistanceParameter();

protected:
    SpatialWeight mSpatialWeight;
};

}

#endif  // SPATIALMONOSCALEALGORITHM_H