Skip to content

Commit 29f808d

Browse files
committed
Fixed BXNL doc
1 parent 0ba9230 commit 29f808d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

BXNL/orbit_ex/Readme.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
> ## Important Information
2-
> This file has a lot of Latex and GitHub currently cannot render it on Markdown files. You can read all the math clearly as a [webpage](https://numericalalgorithmsgroup.github.io/NAGJavaExamples/opt_imp_vol) or access this as a regular github [repository](https://github.com/numericalalgorithmsgroup/NAGJavaExamples/tree/main/opt_imp_vol).
2+
> You can view this page as a [webpage](https://numericalalgorithmsgroup.github.io/NAGJavaExamples/BXNL/orbit_ex) or access this as a regular github [repository](https://github.com/numericalalgorithmsgroup/NAGJavaExamples/tree/main/BXNL/orbit_ex).
33
>
4-
> The source of this example can be found [here](https://github.com/numericalalgorithmsgroup/NAGJavaExamples/blob/main/opt_imp_vol/impVolDemo.java) and the output [here](https://github.com/numericalalgorithmsgroup/NAGJavaExamples/blob/main/opt_imp_vol/output.txt).
4+
> The source of this example can be found [here](https://github.com/numericalalgorithmsgroup/NAGJavaExamples/blob/main/BXNL/orbit_ex/source/OrbitEx.java) and the output [here](https://github.com/numericalalgorithmsgroup/NAGJavaExamples/blob/main/BXNL/orbit_ex/output.txt).
55
>
66
> See the top directory of this repository for instructions to set up the [NAG Library for Java](https://github.com/numericalalgorithmsgroup/NAGJavaExamples).
77
@@ -23,7 +23,7 @@ Example of a nonlinear least-square orbital data fitting. Given a set of orbital
2323
<br/>
2424

2525
<div style="text-align: center;">
26-
<img src="img/dat_orbit.png">
26+
<img src="img/dat_orbit.png" width="50%">
2727
</div>
2828

2929
Image credit: [Image of Earth](https://pics.eumetsat.int/viewer/index.html) was taken from [EUMETSAT, Copyright 2020](https://pics.eumetsat.int/viewer/index.html#help).
@@ -32,7 +32,9 @@ Image credit: [Image of Earth](https://pics.eumetsat.int/viewer/index.html) was
3232
The previous image shows the orbit measurements to which an optimal orbit, `r`, must be estimated.
3333
The simple univariate problem to solve is:
3434

35-
![LaTeX equation: min f(x) = sum i=1 to nres of (tr[i]^2 - r^2)^2](img/ltx_optprb.png)
35+
<div style="text-align: center;">
36+
<img src="img/ltx_optprb.png" alt="LaTeX equation: min f(x) = sum i=1 to nres of (tr[i]^2 - r^2)^2">
37+
</div>
3638

3739
Here `tr[i]` contains the squared norm for the measurement point `i`, given by the coordinate pair `(tx[i], ty[i])`. Note that the coordinates for the center of the planet are provided by the vector `cc`.
3840

@@ -49,6 +51,7 @@ Here `tr[i]` contains the squared norm for the measurement point `i`, given by t
4951
<br/>
5052

5153
```java
54+
// Define the least-square function and add first derivatives.
5255
/**
5356
* Objective function call back passed to the least squares solver. Return the
5457
* difference between the current estimated radius squared, r^2=x^2 and the
@@ -161,7 +164,7 @@ Call the solver
161164
<br/>
162165

163166
<div style="text-align: center;">
164-
<img src="img/est_orbit.png">
167+
<img src="img/est_orbit.png" width="50%">
165168
</div>
166169

167170
Suppose expert knowledge provides insight on the reliability of each measurement and that for this satellite configuration, operational orbit height should be around 250 +/-6 units. The previous image shows a fit where each measurement (data point) contributes the same amount and provides an optimal orbit height of 238.76 units. The fit is quite poor in the sense that it does not satisfy expert advice. Evidently data point 0 (yellow cross closest to Earth surface) is unreliable. Unreliability should be taken into account while doing the fitting. For this end, weights for each residuals are introduced (weights should be set to be proportional to the inverse of their variability). For this example, suppose we are provided with the accuracy for each of the data measurements.
@@ -216,7 +219,7 @@ Optimal Orbit Height: 254.90
216219
<br/>
217220

218221
<div style="text-align: center;">
219-
<img src="img/estw_orbit.png">
222+
<img src="img/estw_orbit.png" width="50%">
220223
</div>
221224

222225

BXNL/orbit_ex/source/OrbitEx.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public static void main(String[] args) {
203203
e04rz.eval(handle, ifail);
204204
}
205205

206+
// Define the least-square function and add first derivatives.
206207
/**
207208
* Objective function call back passed to the least squares solver. Return the
208209
* difference between the current estimated radius squared, r^2=x^2 and the

0 commit comments

Comments
 (0)