sgsPy
structurally guided sampling
Loading...
Searching...
No Matches
clhs.h
#include <iostream>
#include <random>
#include "utils/access.h"
#include "utils/existing.h"
#include "utils/helper.h"
#include "utils/raster.h"
#include "utils/vector.h"
#include <boost/unordered/unordered_flat_set.hpp>
#include <mkl.h>
#include "oneapi/dal.hpp"
#include <xoshiro.h>

Go to the source code of this file.

Classes

struct  sgs::clhs::Point< T >
class  sgs::clhs::CLHSDataManager< T >

Namespaces

namespace  sgs
namespace  sgs::clhs

Macros

#define MILLION   1000000

Functions

template<typename T>
size_t sgs::clhs::getQuantile (T val, std::vector< T > &quantiles)
template<typename T>
void sgs::clhs::readRaster (std::vector< helper::RasterBandMetaData > &bands, CLHSDataManager< T > &clhs, access::Access &access, existing::Existing &existing, helper::RandValController &rand, GDALDataType type, std::vector< std::vector< T > > &quantiles, size_t size, int width, int height, int count, int nSamp)
template<typename T>
void sgs::clhs::selectSamples (std::vector< std::vector< T > > &quantiles, CLHSDataManager< T > &clhs, xso::xoshiro_4x64_plus &rng, existing::Existing &existing, size_t replace, size_t iterations, size_t nSamp, size_t nFeat, OGRLayer *p_layer, double *GT, bool plot, std::vector< double > &xCoords, std::vector< double > &yCoords)
std::tuple< std::vector< std::vector< double > >, vector::GDALVectorWrapper * > sgs::clhs::clhs (raster::GDALRasterWrapper *p_raster, int nSamp, int iterations, vector::GDALVectorWrapper *p_access, std::string layerName, double buffInner, double buffOuter, vector::GDALVectorWrapper *p_existing, size_t replace, bool plot, std::string tempFolder, std::string filename)

Macro Definition Documentation

◆ MILLION

#define MILLION   1000000