-
Notifications
You must be signed in to change notification settings - Fork 0
/
Poly2d_8h_source.html
216 lines (214 loc) · 32.3 KB
/
Poly2d_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
<!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/Poly2d.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">Poly2d.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">//</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Author: Joshua Cohen</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// Copyright 2017</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "forward.h"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <stdexcept></span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <string></span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <vector></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "Constants.h"</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html"> 25</a></span> <span class="keyword">class </span><a class="code" href="classisce3_1_1core_1_1Poly2d.html">isce3::core::Poly2d</a> {</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">public</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_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570"> 29</a></span>  <span class="keywordtype">int</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570">rangeOrder</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026"> 31</a></span>  <span class="keywordtype">int</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026">azimuthOrder</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656"> 33</a></span>  <span class="keywordtype">double</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656">rangeMean</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e"> 35</a></span>  <span class="keywordtype">double</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e">azimuthMean</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75"> 37</a></span>  <span class="keywordtype">double</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75">rangeNorm</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936"> 39</a></span>  <span class="keywordtype">double</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936">azimuthNorm</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86"> 41</a></span>  std::vector<double> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86">coeffs</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a5dd0b81e03375d46e564567c99ce5458"> 51</a></span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a5dd0b81e03375d46e564567c99ce5458">Poly2d</a>(<span class="keywordtype">int</span> ro, <span class="keywordtype">int</span> ao, <span class="keywordtype">double</span> rm, <span class="keywordtype">double</span> am, <span class="keywordtype">double</span> rn, <span class="keywordtype">double</span> an) : <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570">rangeOrder</a>(ro), </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026">azimuthOrder</a>(ao), </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656">rangeMean</a>(rm), </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e">azimuthMean</a>(am),</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75">rangeNorm</a>(rn), </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936">azimuthNorm</a>(an), </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86">coeffs</a>((ro+1)*(ao+1)) </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {}</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a6cf0b87c3add03479b4fa4a9aee1cb28"> 61</a></span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a6cf0b87c3add03479b4fa4a9aee1cb28">Poly2d</a>() : <a class="code" href="classisce3_1_1core_1_1Poly2d.html">Poly2d</a>(-1,-1,0.,0.,1.,1.) {}</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a99b31b1192e411d549d40d52cf8aafd9"> 66</a></span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a99b31b1192e411d549d40d52cf8aafd9">Poly2d</a>(<span class="keyword">const</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html">Poly2d</a> &p) : <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570">rangeOrder</a>(p.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570">rangeOrder</a>), <a class="code" href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026">azimuthOrder</a>(p.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026">azimuthOrder</a>), </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656">rangeMean</a>(p.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656">rangeMean</a>), <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e">azimuthMean</a>(p.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e">azimuthMean</a>), </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75">rangeNorm</a>(p.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75">rangeNorm</a>), <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936">azimuthNorm</a>(p.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936">azimuthNorm</a>), </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86">coeffs</a>(p.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86">coeffs</a>) {}</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">inline</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html">Poly2d</a>& <a class="code" href="classisce3_1_1core_1_1Poly2d.html#aee74052e993956708ebb8246e800a737">operator=</a>(<span class="keyword">const</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html">Poly2d</a>&);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4aa215262ebb5d66d995e3cfa24cc455">setCoeff</a>(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">double</span> val);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#af07b9ef8d8bbcad23eb6686cbf0558bb">getCoeff</a>(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">double</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#ac14bee1204daf4872892c156b523c129">eval</a>(<span class="keywordtype">double</span> azi, <span class="keywordtype">double</span> rng) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">void</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a25502934d3627ca1dcbca4ffc3127b69">printPoly</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> };</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html">isce3::core::Poly2d</a> & <a class="code" href="classisce3_1_1core_1_1Poly2d.html#aee74052e993956708ebb8246e800a737">isce3::core::Poly2d::</a></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#aee74052e993956708ebb8246e800a737"> 88</a></span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#aee74052e993956708ebb8246e800a737">operator=</a>(<span class="keyword">const</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html">Poly2d</a> &rhs) {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570">rangeOrder</a> = rhs.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570">rangeOrder</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026">azimuthOrder</a> = rhs.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026">azimuthOrder</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656">rangeMean</a> = rhs.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656">rangeMean</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e">azimuthMean</a> = rhs.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e">azimuthMean</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75">rangeNorm</a> = rhs.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75">rangeNorm</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936">azimuthNorm</a> = rhs.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936">azimuthNorm</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86">coeffs</a> = rhs.<a class="code" href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86">coeffs</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">void</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4aa215262ebb5d66d995e3cfa24cc455">isce3::core::Poly2d::</a></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#a4aa215262ebb5d66d995e3cfa24cc455"> 104</a></span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#a4aa215262ebb5d66d995e3cfa24cc455">setCoeff</a>(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col, <span class="keywordtype">double</span> val) {</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">if</span> ((row < 0) || (row > azimuthOrder)) {</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  std::string errstr = <span class="stringliteral">"Poly2d::setCoeff - Trying to set coefficient for row "</span> + </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  std::to_string(row+1) + <span class="stringliteral">" out of "</span> + </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  std::to_string(azimuthOrder+1);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">throw</span> std::out_of_range(errstr);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">if</span> ((col < 0) || (col > rangeOrder)) {</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  std::string errstr = <span class="stringliteral">"Poly2d::setCoeff - Trying to set coefficient for col "</span> +</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  std::to_string(col+1) + <span class="stringliteral">" out of "</span> + std::to_string(rangeOrder+1);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">throw</span> std::out_of_range(errstr);</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  coeffs[IDX1D(row,col,rangeOrder+1)] = val;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="keywordtype">double</span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#af07b9ef8d8bbcad23eb6686cbf0558bb">isce3::core::Poly2d::</a></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classisce3_1_1core_1_1Poly2d.html#af07b9ef8d8bbcad23eb6686cbf0558bb"> 123</a></span> <a class="code" href="classisce3_1_1core_1_1Poly2d.html#af07b9ef8d8bbcad23eb6686cbf0558bb">getCoeff</a>(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">if</span> ((row < 0) || (row > azimuthOrder)) {</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  std::string errstr = <span class="stringliteral">"Poly2d::getCoeff - Trying to get coefficient for row "</span> +</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  std::to_string(row+1) + <span class="stringliteral">" out of "</span> + </div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  std::to_string(azimuthOrder+1);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">throw</span> std::out_of_range(errstr);</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">if</span> ((col < 0) || (col > rangeOrder)) {</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  std::string errstr = <span class="stringliteral">"Poly2d::getCoeff - Trying to get coefficient for col "</span> + </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  std::to_string(col+1) + <span class="stringliteral">" out of "</span> + std::to_string(rangeOrder+1);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">throw</span> std::out_of_range(errstr);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> coeffs[IDX1D(row,col,rangeOrder+1)];</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> }</div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html">isce3::core::Poly2d</a></div><div class="ttdoc">Data structure for representing 1D polynomials. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:25</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_aee74052e993956708ebb8246e800a737"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#aee74052e993956708ebb8246e800a737">isce3::core::Poly2d::operator=</a></div><div class="ttdeci">Poly2d & operator=(const Poly2d &)</div><div class="ttdoc">Assignment operator. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:88</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a04b7d1b11ffb192be7ae7f3a44275570"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a04b7d1b11ffb192be7ae7f3a44275570">isce3::core::Poly2d::rangeOrder</a></div><div class="ttdeci">int rangeOrder</div><div class="ttdoc">Order of polynomial in range or x. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:29</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_af274f23ed1f5506eb0c2cd8b97444026"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#af274f23ed1f5506eb0c2cd8b97444026">isce3::core::Poly2d::azimuthOrder</a></div><div class="ttdeci">int azimuthOrder</div><div class="ttdoc">Order of polynomial in azimuth or y. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:31</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_af07b9ef8d8bbcad23eb6686cbf0558bb"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#af07b9ef8d8bbcad23eb6686cbf0558bb">isce3::core::Poly2d::getCoeff</a></div><div class="ttdeci">double getCoeff(int row, int col) const </div><div class="ttdoc">Get coefficient by indices. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:123</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a6cf0b87c3add03479b4fa4a9aee1cb28"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a6cf0b87c3add03479b4fa4a9aee1cb28">isce3::core::Poly2d::Poly2d</a></div><div class="ttdeci">Poly2d()</div><div class="ttdoc">Empty constructor. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:61</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a4602878ea6fc7064c0f65a61744d9936"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a4602878ea6fc7064c0f65a61744d9936">isce3::core::Poly2d::azimuthNorm</a></div><div class="ttdeci">double azimuthNorm</div><div class="ttdoc">Norm in azimuth or y direction. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:39</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a8a9993df62ed2cf28532e0acfeb54d86"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a8a9993df62ed2cf28532e0acfeb54d86">isce3::core::Poly2d::coeffs</a></div><div class="ttdeci">std::vector< double > coeffs</div><div class="ttdoc">Linearized vector of coefficients in row-major format. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:41</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a5dd0b81e03375d46e564567c99ce5458"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a5dd0b81e03375d46e564567c99ce5458">isce3::core::Poly2d::Poly2d</a></div><div class="ttdeci">Poly2d(int ro, int ao, double rm, double am, double rn, double an)</div><div class="ttdoc">Simple constructor. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:51</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a1ad028a4999fc9e824661da5e57f4c75"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a1ad028a4999fc9e824661da5e57f4c75">isce3::core::Poly2d::rangeNorm</a></div><div class="ttdeci">double rangeNorm</div><div class="ttdoc">Norm in range or x direction. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:37</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a4442a32a0e46fa82cf6d25a1a06c069e"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a4442a32a0e46fa82cf6d25a1a06c069e">isce3::core::Poly2d::azimuthMean</a></div><div class="ttdeci">double azimuthMean</div><div class="ttdoc">Mean in azimuth or y direction. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:35</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a25502934d3627ca1dcbca4ffc3127b69"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a25502934d3627ca1dcbca4ffc3127b69">isce3::core::Poly2d::printPoly</a></div><div class="ttdeci">void printPoly() const </div><div class="ttdoc">Printing for debugging. </div><div class="ttdef"><b>Definition:</b> Poly2d.cpp:32</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a4aa215262ebb5d66d995e3cfa24cc455"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a4aa215262ebb5d66d995e3cfa24cc455">isce3::core::Poly2d::setCoeff</a></div><div class="ttdeci">void setCoeff(int row, int col, double val)</div><div class="ttdoc">Set coefficient by indices. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:104</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_a99b31b1192e411d549d40d52cf8aafd9"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#a99b31b1192e411d549d40d52cf8aafd9">isce3::core::Poly2d::Poly2d</a></div><div class="ttdeci">Poly2d(const Poly2d &p)</div><div class="ttdoc">Copy constructor. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:66</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_ab2589eed81cefe4e161d8484a0162656"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#ab2589eed81cefe4e161d8484a0162656">isce3::core::Poly2d::rangeMean</a></div><div class="ttdeci">double rangeMean</div><div class="ttdoc">Mean in range or x direction. </div><div class="ttdef"><b>Definition:</b> Poly2d.h:33</div></div>
<div class="ttc" id="classisce3_1_1core_1_1Poly2d_html_ac14bee1204daf4872892c156b523c129"><div class="ttname"><a href="classisce3_1_1core_1_1Poly2d.html#ac14bee1204daf4872892c156b523c129">isce3::core::Poly2d::eval</a></div><div class="ttdeci">double eval(double azi, double rng) const </div><div class="ttdoc">Evaluate polynomial at given y,x. </div><div class="ttdef"><b>Definition:</b> Poly2d.cpp:14</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>