1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// Copyright (C) 1999-2017
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#ifndef __inversescale_h__
#define __inversescale_h__
#include <iostream>
using namespace std;
#include "vector.h"
class InverseScale {
protected:
double* level_;
int size_;
public:
InverseScale(int);
InverseScale(int, double*);
virtual ~InverseScale();
int size() {return size_;}
double* level() {return level_;}
double level(int ii) {return level_[ii];}
friend ostream& operator<<(ostream&, const InverseScale&);
};
class LinearInverseScale : public InverseScale {
public:
LinearInverseScale(int, double, double);
};
class LogInverseScale : public InverseScale {
public:
LogInverseScale(int, double, double, double);
};
class PowInverseScale : public InverseScale {
public:
PowInverseScale(int, double, double, double);
};
class SqrtInverseScale : public InverseScale {
public:
SqrtInverseScale(int, double, double);
};
class SquaredInverseScale : public InverseScale {
public:
SquaredInverseScale(int, double, double);
};
class AsinhInverseScale : public InverseScale {
public:
AsinhInverseScale(int, double, double);
};
class SinhInverseScale : public InverseScale {
public:
SinhInverseScale(int, double, double);
};
class HistEquInverseScale : public InverseScale {
public:
HistEquInverseScale(int, double, double, double*, int);
};
class IISInverseScale : public InverseScale {
public:
IISInverseScale(int, double, double, Vector&);
};
#endif
|