Class RealVectorRepresentation
java.lang.Object
com.knezevic.edaf.v3.repr.impl.RealVectorRepresentation
- All Implemented Interfaces:
Representation<RealVector>
Real vector representation with optional per-dimension bounds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(RealVector genotype) Returns true if the genotype is valid in this domain.Creates a random feasible genotype.repair(RealVector genotype) Repairs a genotype into the feasible domain.summarize(RealVector genotype) Provides a stable summary for logs and reports.type()Representation identifier used in configuration and logs.
-
Constructor Details
-
RealVectorRepresentation
public RealVectorRepresentation(int length, double lower, double upper)
-
-
Method Details
-
type
Description copied from interface:RepresentationRepresentation identifier used in configuration and logs.- Specified by:
typein interfaceRepresentation<RealVector>
-
random
Description copied from interface:RepresentationCreates a random feasible genotype.- Specified by:
randomin interfaceRepresentation<RealVector>
-
isValid
Description copied from interface:RepresentationReturns true if the genotype is valid in this domain.- Specified by:
isValidin interfaceRepresentation<RealVector>
-
repair
Description copied from interface:RepresentationRepairs a genotype into the feasible domain.- Specified by:
repairin interfaceRepresentation<RealVector>
-
summarize
Description copied from interface:RepresentationProvides a stable summary for logs and reports.- Specified by:
summarizein interfaceRepresentation<RealVector>
-