HOG2
Classes | Functions
RangeCompression.cpp File Reference
#include "RangeCompression.h"
#include <cassert>
#include <cstdint>
#include <iostream>
#include <limits>
#include <memory>
#include <vector>
Include dependency graph for RangeCompression.cpp:

Go to the source code of this file.

Classes

class  HeuristicTableEntry
 
class  HeuristicTable
 
class  Solution
 

Functions

static void DumpSolution (const Solution &solution, const vector< uint64_t > &histogram)
 
static vector< int > Optimize (const vector< uint64_t > &histogram, int numValues, bool dumpResult=false)
 
void GetOptimizedBoundaries (const vector< uint64_t > &distribution, int numValues, vector< int > &result)
 
void DumpOptimizedBoundaries (const vector< uint64_t > &distribution, int numValues)
 

Function Documentation

◆ DumpOptimizedBoundaries()

void DumpOptimizedBoundaries ( const vector< uint64_t > &  distribution,
int  numValues 
)

Definition at line 220 of file RangeCompression.cpp.

References Optimize().

◆ DumpSolution()

static void DumpSolution ( const Solution solution,
const vector< uint64_t > &  histogram 
)
static

Definition at line 153 of file RangeCompression.cpp.

References Solution::GetAverageH(), Solution::GetCost(), and Solution::GetHValues().

Referenced by Optimize().

◆ GetOptimizedBoundaries()

void GetOptimizedBoundaries ( const vector< uint64_t > &  distribution,
int  numValues,
vector< int > &  result 
)

◆ Optimize()

static vector<int> Optimize ( const vector< uint64_t > &  histogram,
int  numValues,
bool  dumpResult = false 
)
static