Class DiagonalGaussianModel
java.lang.Object
com.knezevic.edaf.v3.models.continuous.DiagonalGaussianModel
- All Implemented Interfaces:
Model<RealVector>
Diagonal Gaussian model for continuous EDAs (
Σ = diag(σ^2)).
The model estimates:
μ_d = mean(x_d), σ_d = std(x_d)from selected individuals and samples independently per dimension:
x_d ~ N(μ_d, σ_d^2)with a configurable lower bound on
σ_d to avoid collapse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExposes diagnostics (entropy, covariance condition number, etc.).voidfit(List<Individual<RealVector>> selected, Representation<RealVector> representation, RngStream rng) Fits model parameters from selected individuals.double[]mean()name()Model identifier used in configuration and listing commands.voidrestore(double[] mean, double[] sigma) Restores diagonal Gaussian state from checkpoint payload.sample(int count, Representation<RealVector> representation, Problem<RealVector> problem, ConstraintHandling<RealVector> constraintHandling, RngStream rng) Samples new genotypes from model.double[]sigma()
-
Constructor Details
-
DiagonalGaussianModel
public DiagonalGaussianModel(double minSigma) - Parameters:
minSigma- lower floor for per-dimension standard deviation
-
-
Method Details
-
name
Description copied from interface:ModelModel identifier used in configuration and listing commands.- Specified by:
namein interfaceModel<RealVector>
-
fit
public void fit(List<Individual<RealVector>> selected, Representation<RealVector> representation, RngStream rng) Description copied from interface:ModelFits model parameters from selected individuals.- Specified by:
fitin interfaceModel<RealVector>
-
sample
public List<RealVector> sample(int count, Representation<RealVector> representation, Problem<RealVector> problem, ConstraintHandling<RealVector> constraintHandling, RngStream rng) Description copied from interface:ModelSamples new genotypes from model.- Specified by:
samplein interfaceModel<RealVector>
-
diagnostics
Description copied from interface:ModelExposes diagnostics (entropy, covariance condition number, etc.).- Specified by:
diagnosticsin interfaceModel<RealVector>
-
mean
public double[] mean() -
sigma
public double[] sigma() -
restore
public void restore(double[] mean, double[] sigma) Restores diagonal Gaussian state from checkpoint payload.
-