Package | Description |
---|---|
gov.sandia.cognition.data.convert |
Provides utilities for doing data type conversion.
|
gov.sandia.cognition.data.convert.number |
Provides utilities for doing data type conversion with numbers.
|
gov.sandia.cognition.data.convert.vector |
Provides utilities for doing data type conversion with vectors.
|
gov.sandia.cognition.learning.function.distance |
Provides distance functions.
|
gov.sandia.cognition.text.convert |
Provides classes for converting objects to a textual representation.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractReverseCachedDataConverter<InputType,OutputType,ReverseConverterType extends DataConverter<? super OutputType,? extends InputType>>
Abstract implementation of
ReversibleDataConverter that caches the
reverse converter. |
Modifier and Type | Interface and Description |
---|---|
interface |
ReversibleDataConverter<InputType,OutputType>
Represents a
DataConverter whose conversion can be reversed. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDataConverter<InputType,OutputType>
Abstract implementation of
DataConverter interface. |
class |
AbstractReverseCachedDataConverter<InputType,OutputType,ReverseConverterType extends DataConverter<? super OutputType,? extends InputType>>
Abstract implementation of
ReversibleDataConverter that caches the
reverse converter. |
class |
AbstractReversibleDataConverter<InputType,OutputType>
Abstract implementation of sthe
ReversibleDataConverter interface. |
class |
IdentityDataConverter<DataType>
A pass-through converter that just returns the given value.
|
class |
ObjectToStringConverter
Converts an
Object to a String using the toString
method. |
Modifier and Type | Field and Description |
---|---|
protected ReverseConverterType |
AbstractReverseCachedDataConverter.reverse
A cached value of the reverse converter.
|
Modifier and Type | Method and Description |
---|---|
DataConverter<? super OutputType,? extends InputType> |
ReversibleDataConverter.reverse()
Gets the data converter that performs the reverse conversion.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultBooleanToNumberConverter
Converts a
Boolean to a Number by using predefined values
for true, false, and (optionally) null. |
class |
DefaultBooleanToNumberConverter.Reverse
The reverse converter for the
DefaultBooleanToNumberConverter . |
class |
StringToDoubleConverter
Converts a
String to a Double using the
Double.valueOf method. |
class |
StringToIntegerConverter
Converts a
String to a Integer using the
Integer.valueOf method. |
Modifier and Type | Interface and Description |
---|---|
interface |
DataToVectorEncoder<InputType>
Defines a converter that can be used to encode data into a
Vector . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractToVectorEncoder<InputType>
An abstract implementation of the
DataToVectorEncoder interface. |
class |
NumberConverterToVectorAdapter<InputType>
Adapts a
DataConverter that outputs a number to be a
VectorEncoder . |
class |
NumberToVectorEncoder
An encoder that encodes a number as an element of a
Vector . |
class |
UniqueBooleanVectorEncoder<InputType>
An encoder for arbitrary objects that encodes an equality comparison between
a given input and a set of unique values.
|
Modifier and Type | Field and Description |
---|---|
protected DataConverter<? super InputType,? extends java.lang.Number> |
NumberConverterToVectorAdapter.converter
The converter to adapt for use with
Vector s. |
Modifier and Type | Method and Description |
---|---|
DataConverter<? super InputType,? extends java.lang.Number> |
NumberConverterToVectorAdapter.getConverter()
Gets the number converter being adapted to work with vectors.
|
Modifier and Type | Method and Description |
---|---|
void |
NumberConverterToVectorAdapter.setConverter(DataConverter<? super InputType,? extends java.lang.Number> converter)
Sets the number converter being adapted to work with vectors.
|
Constructor and Description |
---|
NumberConverterToVectorAdapter(DataConverter<? super InputType,? extends java.lang.Number> converter)
Creates a new
NumberConverterToVectorAdapter for the given
converter. |
Modifier and Type | Class and Description |
---|---|
class |
DivergencesEvaluator<InputType,ValueType>
Evaluates the divergence (distance) between an input and a list of values,
storing the resulting divergence values in a vector.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MultiTextualConverter<InputType,OutputType extends Textual>
Interface for an
TextConverter that converts an input into possibly
multiple output textual objects. |
interface |
SingleTextualConverter<InputType,OutputType extends Textual>
Interface for an
TextConverter that converts an input into a single
output. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMultiTextualConverter<InputType,OutputType extends Textual>
An abstract implementation of the
MultiTextualConverter interface. |
class |
AbstractSingleTextualConverter<InputType,OutputType extends Textual>
An abstract implementation of the
SingleTextualConverter interface. |
class |
DocumentFieldConcatenator
A document-text converter that concatenates multiple text fields from a
document together for further processing.
|
class |
DocumentSingleFieldConverter
Extracts a single field from a document.
|
class |
ObjectToStringTextualConverter
A text converter that can take in any type of object and then returns a
new
DefaultTextual that wraps that object's toString() . |
class |
SingleToMultiTextualConverterAdapter<InputType,OutputType extends Textual>
Adapts a
SingleTextualConverter to work within the interface of an
MultiTextualConverter . |