Merging Branch
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
//
|
||||
// logScale.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 20.05.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef logScale_h
|
||||
#define logScale_h
|
||||
|
||||
#include "linScale.h"
|
||||
|
||||
|
||||
class Log_Scale : private Lin_Scale {
|
||||
public:
|
||||
Log_Scale() {};
|
||||
Log_Scale(double min_x, double max_x, int number_bins) : Lin_Scale(std::log10(min_x), std::log10(max_x), number_bins) {};
|
||||
|
||||
int get_max_index() {return(Lin_Scale::get_max_index());}
|
||||
int get_dimension() {return(Lin_Scale::get_dimension());}
|
||||
|
||||
|
||||
int calc_index(double xI) {
|
||||
double pI = std::log10(xI);
|
||||
return (Lin_Scale::calc_index(pI));
|
||||
}
|
||||
|
||||
double calc_upper_bound(int index) {
|
||||
double pI = Lin_Scale::calc_upper_bound(index);
|
||||
return (pow(10,pI));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif /* logScale_h */
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
#include "tcs_container.hpp"
|
||||
#include "dcs_container.hpp"
|
||||
#include "dcs_theta_container.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user