mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-23 20:49:00 -06:00
rename postRender.frag to postrender.frag
This commit is contained in:
@@ -74,7 +74,6 @@ void DataProcessor::clear(){
|
||||
_unNormalizedhistograms.clear();
|
||||
}
|
||||
|
||||
|
||||
float DataProcessor::processDataPoint(float value, int option){
|
||||
if(_numValues.empty()) return 0.0f;
|
||||
std::shared_ptr<Histogram> histogram = _histograms[option];
|
||||
@@ -101,16 +100,6 @@ float DataProcessor::normalizeWithStandardScore(float value, float mean, float s
|
||||
return ( standardScore + zScoreMin )/(zScoreMin + zScoreMax );
|
||||
}
|
||||
|
||||
// float DataProcessor::unnormalizeWithStandardScore(float standardScore, float mean, float sd, glm::vec2 normalizationValues){
|
||||
// float zScoreMin = normalizationValues.x;
|
||||
// float zScoreMax = normalizationValues.y;
|
||||
|
||||
// float value = standardScore*(zScoreMax+zScoreMin)-zScoreMin;
|
||||
// value = value*sd+mean;
|
||||
|
||||
// return value;
|
||||
// }
|
||||
|
||||
void DataProcessor::initializeVectors(int numOptions){
|
||||
if(_min.empty()) _min = std::vector<float>(numOptions, std::numeric_limits<float>::max());
|
||||
if(_max.empty()) _max = std::vector<float>(numOptions, std::numeric_limits<float>::min());
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
/**
|
||||
* Function that initializes the dataprocessor for a new data variable by
|
||||
* calculating its min & max value, standard deviation, sum and histogram for a
|
||||
* given data file. This file will then be used as reference when normalizing, filtering
|
||||
* given data file. This data will then be used as reference when normalizing, filtering
|
||||
* and give auto-contrast
|
||||
*
|
||||
* @param data The data file content to add data from
|
||||
@@ -90,10 +90,8 @@ protected:
|
||||
std::set<std::string> _coordinateVariables;
|
||||
glm::size3_t _dimensions;
|
||||
|
||||
//glm::vec2 _histNormValues;
|
||||
private:
|
||||
float normalizeWithStandardScore(float value, float mean, float sd, glm::vec2 normalizationValues = glm::vec2(1.0f, 1.0f));
|
||||
//float unnormalizeWithStandardScore(float value, float mean, float sd, glm::vec2 normalizationValues = glm::vec2(1.0f, 1.0f));
|
||||
|
||||
bool _useLog;
|
||||
bool _useHistogram;
|
||||
|
||||
Reference in New Issue
Block a user