Class MallowsModel
java.lang.Object
com.knezevic.edaf.v3.models.permutation.MallowsModel
- All Implemented Interfaces:
Model<PermutationVector>
Mallows model under Kendall distance.
The model estimates a consensus permutation (Borda-like ranking from elites)
and concentration parameter φ (or θ=-log φ) from average
Kendall distance to the consensus. Sampling uses repeated insertion model (RIM),
yielding a valid permutation with controllable dispersion around consensus.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExposes diagnostics (entropy, covariance condition number, etc.).voidfit(List<Individual<PermutationVector>> selected, Representation<PermutationVector> representation, RngStream rng) Fits model parameters from selected individuals.name()Model identifier used in configuration and listing commands.sample(int count, Representation<PermutationVector> representation, Problem<PermutationVector> problem, ConstraintHandling<PermutationVector> constraintHandling, RngStream rng) Samples new genotypes from model.
-
Constructor Details
-
MallowsModel
public MallowsModel(double minPhi, double maxPhi) - Parameters:
minPhi- minimum concentration factor (more peaked around consensus)maxPhi- maximum concentration factor (more exploratory)
-
-
Method Details
-
name
Description copied from interface:ModelModel identifier used in configuration and listing commands.- Specified by:
namein interfaceModel<PermutationVector>
-
fit
public void fit(List<Individual<PermutationVector>> selected, Representation<PermutationVector> representation, RngStream rng) Description copied from interface:ModelFits model parameters from selected individuals.- Specified by:
fitin interfaceModel<PermutationVector>
-
sample
public List<PermutationVector> sample(int count, Representation<PermutationVector> representation, Problem<PermutationVector> problem, ConstraintHandling<PermutationVector> constraintHandling, RngStream rng) Description copied from interface:ModelSamples new genotypes from model.- Specified by:
samplein interfaceModel<PermutationVector>
-
diagnostics
Description copied from interface:ModelExposes diagnostics (entropy, covariance condition number, etc.).- Specified by:
diagnosticsin interfaceModel<PermutationVector>
-