C# Class Lucene.Net.Spatial.Queries.SpatialArgs

Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Свойство Type Description
DEFAULT_DISTERRPCT double

Méthodes publiques

Méthode Description
CalcDistanceFromErrPct ( IShape shape, double distErrPct, SpatialContext ctx ) : double

Computes the distance given a shape and the distErrPct. The algorithm is the fraction of the distance from the center of the query shape to its furthest bounding box corner.

ResolveDistErr ( SpatialContext ctx, double defaultDistErrPct ) : double

Gets the error distance that specifies how precise the query shape is. This looks at DistErr, DistErrPct, and defaultDistErrPct.

SpatialArgs ( SpatialOperation operation, IShape shape ) : Spatial4n.Core.Context
ToString ( ) : string
Validate ( ) : void

Check if the arguments make sense -- throw an exception if not

Method Details

CalcDistanceFromErrPct() public static méthode

Computes the distance given a shape and the distErrPct. The algorithm is the fraction of the distance from the center of the query shape to its furthest bounding box corner.
public static CalcDistanceFromErrPct ( IShape shape, double distErrPct, SpatialContext ctx ) : double
shape IShape Mandatory.
distErrPct double 0 to 0.5
ctx SpatialContext Mandatory
Résultat double

ResolveDistErr() public méthode

Gets the error distance that specifies how precise the query shape is. This looks at DistErr, DistErrPct, and defaultDistErrPct.
public ResolveDistErr ( SpatialContext ctx, double defaultDistErrPct ) : double
ctx SpatialContext
defaultDistErrPct double 0 to 0.5
Résultat double

SpatialArgs() public méthode

public SpatialArgs ( SpatialOperation operation, IShape shape ) : Spatial4n.Core.Context
operation SpatialOperation
shape IShape
Résultat Spatial4n.Core.Context

ToString() public méthode

public ToString ( ) : string
Résultat string

Validate() public méthode

Check if the arguments make sense -- throw an exception if not
public Validate ( ) : void
Résultat void

Property Details

DEFAULT_DISTERRPCT public_oe static_oe property

public static double DEFAULT_DISTERRPCT
Résultat double