1
0
Fork 0

Tweaked output formatting a bit.

This commit is contained in:
curt 1999-03-13 23:50:26 +00:00
parent 1c180f1952
commit cac521c151
3 changed files with 19 additions and 13 deletions

View file

@ -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
void FGArray::fit( FGBucket& p, double error ) {
void FGArray::fit( double error ) {
double x[ARRAY_SIZE_1], y[ARRAY_SIZE_1];
double m, b, max_error, error_sq;
double x1, y1;
@ -552,6 +552,9 @@ FGArray::~FGArray( void ) {
// $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
// Initial revision. (derived from libDEM.a code.)
//

View file

@ -110,7 +110,7 @@ public:
int parse();
// 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
// rewrite this to interpolate exact values, but for now this is
@ -131,6 +131,9 @@ public:
// $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
// Initial revision. (derived from libDEM.a code.)
//

View file

@ -33,5 +33,5 @@ main(int argc, char **argv) {
lat *= 3600;
cout << a.interpolate_altitude(lon, lat) << endl;
a.fit(b, 100);
a.fit( 100 );
}