Tweaked output formatting a bit.
This commit is contained in:
parent
1c180f1952
commit
cac521c151
3 changed files with 19 additions and 13 deletions
|
@ -160,7 +160,7 @@ void FGArray::outputmesh_set_pt( int i, int j, double value ) {
|
||||||
|
|
||||||
|
|
||||||
// Use least squares to fit a simpler data set to dem data
|
// Use least squares to fit a simpler data set to dem data
|
||||||
void FGArray::fit( FGBucket& p, double error ) {
|
void FGArray::fit( double error ) {
|
||||||
double x[ARRAY_SIZE_1], y[ARRAY_SIZE_1];
|
double x[ARRAY_SIZE_1], y[ARRAY_SIZE_1];
|
||||||
double m, b, max_error, error_sq;
|
double m, b, max_error, error_sq;
|
||||||
double x1, y1;
|
double x1, y1;
|
||||||
|
@ -552,6 +552,9 @@ FGArray::~FGArray( void ) {
|
||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.2 1999/03/13 23:50:26 curt
|
||||||
|
// Tweaked output formatting a bit.
|
||||||
|
//
|
||||||
// Revision 1.1 1999/03/13 18:45:02 curt
|
// Revision 1.1 1999/03/13 18:45:02 curt
|
||||||
// Initial revision. (derived from libDEM.a code.)
|
// Initial revision. (derived from libDEM.a code.)
|
||||||
//
|
//
|
||||||
|
|
|
@ -110,7 +110,7 @@ public:
|
||||||
int parse();
|
int parse();
|
||||||
|
|
||||||
// Use least squares to fit a simpler data set to dem data
|
// Use least squares to fit a simpler data set to dem data
|
||||||
void fit( FGBucket& p, double error );
|
void fit( double error );
|
||||||
|
|
||||||
// return the current altitude based on grid data. We should
|
// return the current altitude based on grid data. We should
|
||||||
// rewrite this to interpolate exact values, but for now this is
|
// rewrite this to interpolate exact values, but for now this is
|
||||||
|
@ -131,6 +131,9 @@ public:
|
||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.2 1999/03/13 23:50:27 curt
|
||||||
|
// Tweaked output formatting a bit.
|
||||||
|
//
|
||||||
// Revision 1.1 1999/03/13 18:45:02 curt
|
// Revision 1.1 1999/03/13 18:45:02 curt
|
||||||
// Initial revision. (derived from libDEM.a code.)
|
// Initial revision. (derived from libDEM.a code.)
|
||||||
//
|
//
|
||||||
|
|
|
@ -33,5 +33,5 @@ main(int argc, char **argv) {
|
||||||
lat *= 3600;
|
lat *= 3600;
|
||||||
cout << a.interpolate_altitude(lon, lat) << endl;
|
cout << a.interpolate_altitude(lon, lat) << endl;
|
||||||
|
|
||||||
a.fit(b, 100);
|
a.fit( 100 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue