xapian-core
1.4.27
|
LatLongDistancePostingSource implementation. More...
#include <config.h>
#include "xapian/geospatial.h"
#include "xapian/error.h"
#include "xapian/registry.h"
#include "net/length.h"
#include "serialise-double.h"
#include "str.h"
#include <cmath>
Go to the source code of this file.
Functions | |
static double | weight_from_distance (double dist, double k1, double k2) |
static void | validate_postingsource_params (double k1, double k2) |
Validate the parameters supplied to LatLongDistancePostingSource. More... | |
LatLongDistancePostingSource implementation.
Definition in file latlong_posting_source.cc.
|
static |
Validate the parameters supplied to LatLongDistancePostingSource.
Definition at line 58 of file latlong_posting_source.cc.
References Xapian::Internal::str().
Referenced by Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource().
|
static |
Definition at line 41 of file latlong_posting_source.cc.
Referenced by Xapian::LatLongDistancePostingSource::get_weight(), and Xapian::LatLongDistancePostingSource::LatLongDistancePostingSource().