Class CategoricalVectorRepresentation
java.lang.Object
com.knezevic.edaf.v3.repr.impl.CategoricalVectorRepresentation
- All Implemented Interfaces:
Representation<CategoricalVector>
public final class CategoricalVectorRepresentation
extends Object
implements Representation<CategoricalVector>
Categorical vector representation with per-position symbol draw.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(CategoricalVector genotype) Returns true if the genotype is valid in this domain.Creates a random feasible genotype.repair(CategoricalVector genotype) Repairs a genotype into the feasible domain.summarize(CategoricalVector genotype) Provides a stable summary for logs and reports.type()Representation identifier used in configuration and logs.
-
Constructor Details
-
CategoricalVectorRepresentation
-
-
Method Details
-
type
Description copied from interface:RepresentationRepresentation identifier used in configuration and logs.- Specified by:
typein interfaceRepresentation<CategoricalVector>
-
random
Description copied from interface:RepresentationCreates a random feasible genotype.- Specified by:
randomin interfaceRepresentation<CategoricalVector>
-
isValid
Description copied from interface:RepresentationReturns true if the genotype is valid in this domain.- Specified by:
isValidin interfaceRepresentation<CategoricalVector>
-
repair
Description copied from interface:RepresentationRepairs a genotype into the feasible domain.- Specified by:
repairin interfaceRepresentation<CategoricalVector>
-
summarize
Description copied from interface:RepresentationProvides a stable summary for logs and reports.- Specified by:
summarizein interfaceRepresentation<CategoricalVector>
-