Help Manual
|
iPOGO V5 Help Manual On-Line |
Group: Command: |
36) Best Fit Solutions 39 or BestFit Line |
Methodology
|
| Command: | 39 |
| Alpha Alias: | BestFit Line |
| Description: | Fits a straight line through field points |
| Data Format: | 39 Set Field-Points ; |
| Problem: | Given field points 1 thru 5. Fit a line through the points so that the sum of the offsets to the right equal the sum of the offsets to the left. Compute the endpoints of the line. |
| Solution: |
39 500 1 2 3 4 5 ; |
No Image Available
Data Description
Command
| 39
| Fits a straight line through field points, so that the sum of the offset distances from points on one side of the line is equal to the sum of the offset distances from points on the other side of the line. Computes two points which define the line.
|
Set
| 500
| Point number assigned to the first point computed. This point is located by dropping a perpendicular from the first field point entered to the computed line. The second point computed will be numbered one greater than the first point number and will be set by dropping a perpendicular to the new line from the last known point entered.
|
Field-Points
| 1, 2, 3, 4, 5
| Previously computed point numbers to be used in establishing the new line. You may enter up to 100 point numbers.
If you want to define a series of sequential points, enter the first and last points in the series. The last point number must be preceded by a hyphen.
Example:Enter 1,-10 to define the range of points from 1 through 10, inclusive.
|
End Command
| ;
| All commands end with a semi-colon.
|
Example Command File
$ Example file for the 39 (BestFit Line) command
$ set the initial points
0 1 1000 999 ;
0 100 1000 1100 ;
1.1 2 100 1 0 20 1 30 -1 40 1 50 -1 ;
$ compute the best fit line solution
$ using the 39 command
39 500 1 2 3 4 5 ;
$ set plotting feature
15.1 cl cl 1 1 1;
91 ;
15 cl;
100 line solution ;
7 1 500 501 ;
100 offsets to field points from curve solution;
33 500 501 1 -5 ;
Help for this command was last updated: 06/28/2000 12:19:08 AM
|