sgsPy
structurally guided sampling
Loading...
Searching...
No Matches
strat.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 <xoshiro.h>

Go to the source code of this file.

Classes

struct  sgs::strat::OptimAllocationDataManager
class  sgs::strat::IndexStorageVectors
struct  sgs::strat::FocalWindow

Namespaces

namespace  sgs
namespace  sgs::strat

Functions

std::vector< int64_t > sgs::strat::calculateAllocation (int64_t numSamples, std::string allocation, std::vector< int64_t > strataCounts, std::vector< double > weights, int64_t numPixels)
template<typename T>
std::vector< int64_t > sgs::strat::processBlocksStratRandom (int numSamples, int numStrata, helper::RasterBandMetaData &band, access::Access &access, existing::Existing &existing, IndexStorageVectors &indices, std::vector< std::vector< OGRPoint > > &existingSamples, uint64_t multiplier, xso::xoshiro_4x64_plus &rng, std::string allocation, OptimAllocationDataManager &optim, std::vector< double > weights, int width, int height)
template<typename T>
std::vector< int64_t > sgs::strat::processBlocksStratQueinnec (int numSamples, int numStrata, helper::RasterBandMetaData &band, access::Access &access, existing::Existing &existing, IndexStorageVectors &indices, IndexStorageVectors &queinnecIndices, FocalWindow &fw, std::vector< std::vector< OGRPoint > > &existingSamples, uint64_t multiplier, uint64_t queinnecMultiplier, xso::xoshiro_4x64_plus &rng, std::string allocation, OptimAllocationDataManager &optim, std::vector< double > weights, int width, int height)
std::tuple< std::vector< std::vector< double > >, vector::GDALVectorWrapper *, size_t > sgs::strat::strat (raster::GDALRasterWrapper *p_raster, int bandNum, int64_t numSamples, int64_t numStrata, std::string allocation, std::vector< double > weights, raster::GDALRasterWrapper *p_mraster, int mrastBandNum, std::string method, int wrow, int wcol, double mindist, vector::GDALVectorWrapper *p_existing, bool force, vector::GDALVectorWrapper *p_access, std::string layerName, double buffInner, double buffOuter, std::vector< std::pair< std::string, int > > mapStratMapping, bool plot, std::string filename, std::string tempFolder)