DFLib Release 1.0.0
Functions
testlsDF_proj.cpp File Reference
#include <cmath>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <proj.h>
#include "Util_Misc.hpp"
#include "gaussian_random.hpp"
#include "DF_Proj_Point.hpp"
#include "DF_Report_Collection.hpp"
#include "DF_Proj_Report.hpp"
#include "DFLib_Misc_Defs.h"
Include dependency graph for testlsDF_proj.cpp:

Functions

double proj_dmstor (const char *, char **)
 
int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

A simple demo program to test out DFLib fixes using the DFLIB::Proj::Report class

testlsDFfix_proj takes a longitude/latitude pair in PROJ.4 format as command line arguments. This coordinate pair represents the actual location of a transmitter. It also takes as standard in a text file of receiver locations with their standard deviations. Several example receivers files are distributed with DFLib.

The program then computes the actual bearings from the given receiver locations to the known transmitter location, and adds random errors to the bearings. The random errors are selected from a Gaussian distribution with the standard deviations given in the receivers file.

From the randomized bearings, the code computes DF fixes using all the methods available in DFLib: the Fix Cut Average, Least Squares (orthogonal vectors), Maximum Likelihood and Stansfield fixes. It outputs a file "testlsDFfix.gnuplot" of Gnuplot commands to plot the DF problem and the various fixes. Error ellipses for the Stansfield solution are also plotted.

Here is the call graph for this function:

◆ proj_dmstor()

double proj_dmstor ( const char *  ,
char **   
)
Here is the caller graph for this function: