Package elki.datasource.filter.transform
Class LatLngToECEFFilter<V extends NumberVector>
- java.lang.Object
-
- elki.datasource.filter.AbstractStreamFilter
-
- elki.datasource.filter.AbstractStreamConversionFilter<V,V>
-
- elki.datasource.filter.transform.LatLngToECEFFilter<V>
-
- Type Parameters:
V
- Vector type.
- All Implemented Interfaces:
BundleStreamSource
,ObjectFilter
,StreamFilter
public class LatLngToECEFFilter<V extends NumberVector> extends AbstractStreamConversionFilter<V,V>
Project a 2D data set (latitude, longitude) to a 3D coordinate system (X, Y, Z), such that Euclidean distance is line-of-sight.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface elki.datasource.bundle.BundleStreamSource
BundleStreamSource.Event
-
-
Field Summary
Fields Modifier and Type Field Description private NumberVector.Factory<V>
factory
Vector factory to use.private EarthModel
model
Earth model to use.-
Fields inherited from class elki.datasource.filter.AbstractStreamFilter
source
-
-
Constructor Summary
Constructors Constructor Description LatLngToECEFFilter(EarthModel model)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SimpleTypeInformation<? super V>
convertedType(SimpleTypeInformation<V> in)
Get the output type from the input type after conversion.protected V
filterSingleObject(V obj)
Normalize a single instance.protected SimpleTypeInformation<? super V>
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.-
Methods inherited from class elki.datasource.filter.AbstractStreamConversionFilter
data, getMeta, nextEvent
-
Methods inherited from class elki.datasource.filter.AbstractStreamFilter
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init, toString
-
-
-
-
Field Detail
-
factory
private NumberVector.Factory<V extends NumberVector> factory
Vector factory to use.
-
model
private EarthModel model
Earth model to use.
-
-
Constructor Detail
-
LatLngToECEFFilter
public LatLngToECEFFilter(EarthModel model)
Constructor.- Parameters:
model
- Earth model
-
-
Method Detail
-
filterSingleObject
protected V filterSingleObject(V obj)
Description copied from class:AbstractStreamConversionFilter
Normalize a single instance. You can implement this as UnsupportedOperationException if you override both public "normalize" functions!- Specified by:
filterSingleObject
in classAbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
- Parameters:
obj
- Database object to normalize- Returns:
- Normalized database object
-
getInputTypeRestriction
protected SimpleTypeInformation<? super V> getInputTypeRestriction()
Description copied from class:AbstractStreamConversionFilter
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in classAbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
- Returns:
- Type restriction
-
convertedType
protected SimpleTypeInformation<? super V> convertedType(SimpleTypeInformation<V> in)
Description copied from class:AbstractStreamConversionFilter
Get the output type from the input type after conversion.- Specified by:
convertedType
in classAbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
- Parameters:
in
- input type restriction- Returns:
- output type restriction
-
-