Class CodomainExtraction<Y>
- java.lang.Object
-
- org.tensorics.core.function.operations.CodomainExtraction<Y>
-
- Type Parameters:
Y
- the type of the dependent variable (output)of the discrete function
- All Implemented Interfaces:
java.util.function.Function<DiscreteFunction<?,Y>,java.lang.Iterable<Y>>
,Conversion<DiscreteFunction<?,Y>,java.lang.Iterable<Y>>
public class CodomainExtraction<Y> extends java.lang.Object implements Conversion<DiscreteFunction<?,Y>,java.lang.Iterable<Y>>
A conversion that takes aDiscreteFunction
and produces an iterable that contains the values of its codomain. See Codomain
-
-
Constructor Summary
Constructors Constructor Description CodomainExtraction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<Y>
apply(DiscreteFunction<?,Y> inputfunction)
Has to implement the conversion logic to convert the given object into an object of type R.
-
-
-
Method Detail
-
apply
public java.lang.Iterable<Y> apply(DiscreteFunction<?,Y> inputfunction)
Description copied from interface:Conversion
Has to implement the conversion logic to convert the given object into an object of type R.- Specified by:
apply
in interfaceConversion<DiscreteFunction<?,Y>,java.lang.Iterable<Y>>
- Specified by:
apply
in interfacejava.util.function.Function<DiscreteFunction<?,Y>,java.lang.Iterable<Y>>
- Parameters:
inputfunction
- the object to convert- Returns:
- an object of the correct return type.
-
-