-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLUT1d_8h_source.html
221 lines (219 loc) · 32.1 KB
/
LUT1d_8h_source.html
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>isce3: isce/cxx/isce3/core/LUT1d.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">isce3
 <span id="projectnumber">0.1.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="sphinx/html/index.html"><span>Python classes</span></a></li>
<li><a href="https://github-fn.jpl.nasa.gov/isce-3/isce/issues/"><span>Issue Tracker</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_404e96cc334514cbeb4d3a6830fc20a4.html">isce</a></li><li class="navelem"><a class="el" href="dir_242328b4dda42afcab822a3a2c9e5d23.html">cxx</a></li><li class="navelem"><a class="el" href="dir_25ad1bde3345b7504bdf331e9ef506fd.html">isce3</a></li><li class="navelem"><a class="el" href="dir_a4747e1a7bb9ad1773f71fc089a1bb9f.html">core</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">LUT1d.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//-*- C++ -*-</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//-*- coding: utf-8 -*-</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">//</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// Source Author: Bryan Riel</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// Copyright 2017-2018</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "forward.h"</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <valarray></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">class </span><a class="code" href="classisce3_1_1core_1_1LUT1d.html">isce3::core::LUT1d</a> {</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a9c3485ae71d80c1aa731c48a3f0e0770"> 21</a></span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a9c3485ae71d80c1aa731c48a3f0e0770">LUT1d</a>() : _haveData(false), _refValue(0.0), _extrapolate{<span class="keyword">true</span>} {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  std::valarray<double> x{0.0, 1.0};</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  std::valarray<double> y{0.0, 0.0};</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  _coords = x;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  _values = y;</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a9a95e816a7469aa84e4131a593c1955f"> 29</a></span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a9a95e816a7469aa84e4131a593c1955f">LUT1d</a>(T <a class="code" href="classisce3_1_1core_1_1LUT1d.html#afa513ddf52e3f53219d55eafcd7aae41">refValue</a>) : _haveData(false), _refValue(refValue), _extrapolate{<span class="keyword">true</span>} {}</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a5ad98c0842e9153cd6effa58c035e93d"> 32</a></span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a5ad98c0842e9153cd6effa58c035e93d">LUT1d</a>(<span class="keywordtype">size_t</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a8e700eec3efba0cc57980f3cfd8b8ba5">size</a>) : _haveData(false), _refValue(0.0), _extrapolate{<span class="keyword">true</span>} {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  _coords.resize(<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a8e700eec3efba0cc57980f3cfd8b8ba5">size</a>);</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  _values.resize(<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a8e700eec3efba0cc57980f3cfd8b8ba5">size</a>);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a3c82a69bdb8840b168096877331c00a4"> 41</a></span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a3c82a69bdb8840b168096877331c00a4">LUT1d</a>(<span class="keyword">const</span> std::valarray<double> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a5d102f6e9528fc2e1d8294ebf9e41a08">coords</a>, <span class="keyword">const</span> std::valarray<T> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a2731fc2e4cdcae82fcdffcdcbe19a8c1">values</a>,</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">bool</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#ab00d53e929f372e53a5c9216599a3d8e">extrapolate</a> = <span class="keyword">false</span>) : </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  _haveData(true),</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  _refValue(values[0]),</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  _coords(coords),</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  _values(values),</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  _extrapolate{<a class="code" href="classisce3_1_1core_1_1LUT1d.html#ab00d53e929f372e53a5c9216599a3d8e">extrapolate</a>} {}</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#af04d61c52872239ac3107e98abb6f095"> 51</a></span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#af04d61c52872239ac3107e98abb6f095">LUT1d</a>(<span class="keyword">const</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html">LUT1d<T></a> & lut) :</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  _haveData(lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a66679cf215c07c1fd3cf871ec17515b5">haveData</a>()),</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  _refValue(lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#afa513ddf52e3f53219d55eafcd7aae41">refValue</a>()),</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  _coords(lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a5d102f6e9528fc2e1d8294ebf9e41a08">coords</a>()),</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  _values(lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a2731fc2e4cdcae82fcdffcdcbe19a8c1">values</a>()),</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  _extrapolate(lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#ab00d53e929f372e53a5c9216599a3d8e">extrapolate</a>()) {}</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a126d4945ec61e81f92465b1fdf72aa00"> 60</a></span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html">LUT1d</a> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a126d4945ec61e81f92465b1fdf72aa00">operator=</a>(<span class="keyword">const</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html">LUT1d<T></a> & lut) {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  _haveData = lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a66679cf215c07c1fd3cf871ec17515b5">haveData</a>();</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  _refValue = lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#afa513ddf52e3f53219d55eafcd7aae41">refValue</a>();</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  _coords = lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a5d102f6e9528fc2e1d8294ebf9e41a08">coords</a>();</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  _values = lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#a2731fc2e4cdcae82fcdffcdcbe19a8c1">values</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  _extrapolate = lut.<a class="code" href="classisce3_1_1core_1_1LUT1d.html#ab00d53e929f372e53a5c9216599a3d8e">extrapolate</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a9c3485ae71d80c1aa731c48a3f0e0770">LUT1d</a>(<span class="keyword">const</span> <a class="code" href="classisce3_1_1core_1_1LUT2d.html">LUT2d<T></a> & lut2d);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html">LUT1d</a> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a126d4945ec61e81f92465b1fdf72aa00">operator=</a>(<span class="keyword">const</span> <a class="code" href="classisce3_1_1core_1_1LUT2d.html">LUT2d<T></a> & lut2d);</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a5d102f6e9528fc2e1d8294ebf9e41a08"> 77</a></span>  <span class="keyword">inline</span> std::valarray<double> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a5d102f6e9528fc2e1d8294ebf9e41a08">coords</a>() { <span class="keywordflow">return</span> _coords; }</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#ad2cdbdfc19969841ac29108f7a961797"> 81</a></span>  <span class="keyword">inline</span> <span class="keyword">const</span> std::valarray<double> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#ad2cdbdfc19969841ac29108f7a961797">coords</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _coords; }</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#acc392da3a6aa896fcb5c264c52ff6aea"> 85</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#acc392da3a6aa896fcb5c264c52ff6aea">coords</a>(<span class="keyword">const</span> std::valarray<double> & c) { _coords = c; }</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a2731fc2e4cdcae82fcdffcdcbe19a8c1"> 89</a></span>  <span class="keyword">inline</span> std::valarray<T> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a2731fc2e4cdcae82fcdffcdcbe19a8c1">values</a>() { <span class="keywordflow">return</span> _values; }</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#ad84b4555e82f760834335cac78b35e34"> 93</a></span>  <span class="keyword">inline</span> <span class="keyword">const</span> std::valarray<T> & <a class="code" href="classisce3_1_1core_1_1LUT1d.html#ad84b4555e82f760834335cac78b35e34">values</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _values; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a0f565f73ce0bb6f4116300dbb72c6ba8"> 97</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a0f565f73ce0bb6f4116300dbb72c6ba8">values</a>(<span class="keyword">const</span> std::valarray<T> & v) { _values = v; }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#ab00d53e929f372e53a5c9216599a3d8e"> 101</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#ab00d53e929f372e53a5c9216599a3d8e">extrapolate</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _extrapolate; }</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#aa47c977ab13f5d1c6ad2d378528012ff"> 105</a></span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#aa47c977ab13f5d1c6ad2d378528012ff">extrapolate</a>(<span class="keywordtype">bool</span> flag) { _extrapolate = flag; }</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a66679cf215c07c1fd3cf871ec17515b5"> 108</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a66679cf215c07c1fd3cf871ec17515b5">haveData</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _haveData; }</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#afa513ddf52e3f53219d55eafcd7aae41"> 111</a></span>  <span class="keyword">inline</span> T <a class="code" href="classisce3_1_1core_1_1LUT1d.html#afa513ddf52e3f53219d55eafcd7aae41">refValue</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _refValue; }</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1LUT1d.html#a8e700eec3efba0cc57980f3cfd8b8ba5"> 115</a></span>  <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="classisce3_1_1core_1_1LUT1d.html#a8e700eec3efba0cc57980f3cfd8b8ba5">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _coords.size(); }</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">inline</span> T <a class="code" href="classisce3_1_1core_1_1LUT1d.html#abf40ad5093b03de3222977b62c6d2054">eval</a>(<span class="keywordtype">double</span> x) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="comment">// Data members</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordtype">bool</span> _haveData;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  T _refValue;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  std::valarray<double> _coords;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  std::valarray<T> _values;</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordtype">bool</span> _extrapolate;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> };</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment">// Get inline implementations for LUT1d</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="preprocessor">#define ISCE_CORE_LUT1D_ICC</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="preprocessor"></span><span class="preprocessor">#include "LUT1d.icc"</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="preprocessor">#undef ISCE_CORE_LUT1D_ICC</span></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a5ad98c0842e9153cd6effa58c035e93d"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a5ad98c0842e9153cd6effa58c035e93d">isce3::core::LUT1d::LUT1d</a></div><div class="ttdeci">LUT1d(size_t size)</div><div class="ttdoc">Constructor with size. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:32</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a2731fc2e4cdcae82fcdffcdcbe19a8c1"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a2731fc2e4cdcae82fcdffcdcbe19a8c1">isce3::core::LUT1d::values</a></div><div class="ttdeci">std::valarray< T > & values()</div><div class="ttdoc">Get a reference to the coordinates. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:89</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_ab00d53e929f372e53a5c9216599a3d8e"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#ab00d53e929f372e53a5c9216599a3d8e">isce3::core::LUT1d::extrapolate</a></div><div class="ttdeci">bool extrapolate() const </div><div class="ttdoc">Get extrapolate flag. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:101</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_afa513ddf52e3f53219d55eafcd7aae41"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#afa513ddf52e3f53219d55eafcd7aae41">isce3::core::LUT1d::refValue</a></div><div class="ttdeci">T refValue() const </div><div class="ttdoc">Get reference value. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:111</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_ad84b4555e82f760834335cac78b35e34"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#ad84b4555e82f760834335cac78b35e34">isce3::core::LUT1d::values</a></div><div class="ttdeci">const std::valarray< T > & values() const </div><div class="ttdoc">Get a read-only reference to the values. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:93</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_abf40ad5093b03de3222977b62c6d2054"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#abf40ad5093b03de3222977b62c6d2054">isce3::core::LUT1d::eval</a></div><div class="ttdeci">T eval(double x) const </div><div class="ttdoc">Evaluate the LUT. </div><div class="ttdef"><b>Definition:</b> LUT1d.icc:106</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a8e700eec3efba0cc57980f3cfd8b8ba5"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a8e700eec3efba0cc57980f3cfd8b8ba5">isce3::core::LUT1d::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdoc">Get size of LUT. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:115</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html">isce3::core::LUT1d</a></div><div class="ttdoc">Data structure to hold a 1D Lookup table. </div><div class="ttdef"><b>Definition:</b> forward.h:29</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_ad2cdbdfc19969841ac29108f7a961797"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#ad2cdbdfc19969841ac29108f7a961797">isce3::core::LUT1d::coords</a></div><div class="ttdeci">const std::valarray< double > & coords() const </div><div class="ttdoc">Get a read-only reference to the coordinates. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:81</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT2d_html"><div class="ttname"><a href="classisce3_1_1core_1_1LUT2d.html">isce3::core::LUT2d</a></div><div class="ttdoc">Data structure to store 2D Lookup table. </div><div class="ttdef"><b>Definition:</b> forward.h:30</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a9a95e816a7469aa84e4131a593c1955f"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a9a95e816a7469aa84e4131a593c1955f">isce3::core::LUT1d::LUT1d</a></div><div class="ttdeci">LUT1d(T refValue)</div><div class="ttdoc">Constructor with a constant reference value. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:29</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a66679cf215c07c1fd3cf871ec17515b5"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a66679cf215c07c1fd3cf871ec17515b5">isce3::core::LUT1d::haveData</a></div><div class="ttdeci">bool haveData() const </div><div class="ttdoc">Get flag for having data. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:108</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a0f565f73ce0bb6f4116300dbb72c6ba8"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a0f565f73ce0bb6f4116300dbb72c6ba8">isce3::core::LUT1d::values</a></div><div class="ttdeci">void values(const std::valarray< T > &v)</div><div class="ttdoc">Set the values. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:97</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a9c3485ae71d80c1aa731c48a3f0e0770"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a9c3485ae71d80c1aa731c48a3f0e0770">isce3::core::LUT1d::LUT1d</a></div><div class="ttdeci">LUT1d()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:21</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a126d4945ec61e81f92465b1fdf72aa00"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a126d4945ec61e81f92465b1fdf72aa00">isce3::core::LUT1d::operator=</a></div><div class="ttdeci">LUT1d & operator=(const LUT1d< T > &lut)</div><div class="ttdoc">Assignment operator. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:60</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a3c82a69bdb8840b168096877331c00a4"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a3c82a69bdb8840b168096877331c00a4">isce3::core::LUT1d::LUT1d</a></div><div class="ttdeci">LUT1d(const std::valarray< double > &coords, const std::valarray< T > &values, bool extrapolate=false)</div><div class="ttdoc">Constructor with coordinates and values. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:41</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_af04d61c52872239ac3107e98abb6f095"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#af04d61c52872239ac3107e98abb6f095">isce3::core::LUT1d::LUT1d</a></div><div class="ttdeci">LUT1d(const LUT1d< T > &lut)</div><div class="ttdoc">Copy constructor. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:51</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_a5d102f6e9528fc2e1d8294ebf9e41a08"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#a5d102f6e9528fc2e1d8294ebf9e41a08">isce3::core::LUT1d::coords</a></div><div class="ttdeci">std::valarray< double > & coords()</div><div class="ttdoc">Get a reference to the coordinates. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:77</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_aa47c977ab13f5d1c6ad2d378528012ff"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#aa47c977ab13f5d1c6ad2d378528012ff">isce3::core::LUT1d::extrapolate</a></div><div class="ttdeci">void extrapolate(bool flag)</div><div class="ttdoc">Set extrapolate flag. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:105</div></div>
<div class="ttc" id="classisce3_1_1core_1_1LUT1d_html_acc392da3a6aa896fcb5c264c52ff6aea"><div class="ttname"><a href="classisce3_1_1core_1_1LUT1d.html#acc392da3a6aa896fcb5c264c52ff6aea">isce3::core::LUT1d::coords</a></div><div class="ttdeci">void coords(const std::valarray< double > &c)</div><div class="ttdoc">Set the coordinates. </div><div class="ttdef"><b>Definition:</b> LUT1d.h:85</div></div>
</div><!-- fragment --></div><!-- contents -->
<hr>
Generated for ISCE3.0 by
<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.8.5.
</body>
</html>