xapian-core  1.4.25
Functions
latlong_posting_source.cc File Reference

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>
+ Include dependency graph for latlong_posting_source.cc:

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...
 

Detailed Description

LatLongDistancePostingSource implementation.

Definition in file latlong_posting_source.cc.

Function Documentation

◆ validate_postingsource_params()

static void validate_postingsource_params ( double  k1,
double  k2 
)
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().

◆ weight_from_distance()

static double weight_from_distance ( double  dist,
double  k1,
double  k2 
)
static