Package jdistlib.inference
Class Constraints
java.lang.Object
jdistlib.inference.Constraints
Standard parameter constraints and their Jacobian-aware transforms.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterConstraintbounded(double lower, double upper) static ParameterConstraintboundedVector(double lower, double upper, int dimension) static ParameterConstraintcholeskyFactorCorrelation(int dimension) Stan-compatible Cholesky factor of a correlation matrix, stored row-major.static ParameterConstraintcholeskyFactorCovariance(int rows, int columns) Stan-compatible lower Cholesky factor of anrows x columnscovariance matrix.static ParameterConstraintcorrelationMatrix(int dimension) Stan-compatible correlation-matrix (LKJ/CPC) transform, stored row-major.static ParameterConstraintcovarianceMatrix(int dimension) Stan-compatible covariance-matrix transform, stored row-major.static ParameterConstraintlowerBound(double lower, int dimension) static ParameterConstraintoffsetMultiplier(double offset, double multiplier, int dimension) static ParameterConstraintordered(int dimension) static ParameterConstraintpositive()static ParameterConstraintpositiveOrdered(int dimension) static ParameterConstraintpositiveVector(int dimension) static ParameterConstraintreal()static ParameterConstraintrealVector(int dimension) static ParameterConstraintrepeated(ParameterConstraint element, int repetitions) Repeats an independent constraint transform, as required for arrays of constrained values.static ParameterConstraintsimplex(int dimension) static ParameterConstraintsumToZero(int dimension) static ParameterConstraintunitVector(int dimension) Stan-compatible unit-vector normalization transform.static ParameterConstraintupperBound(double upper, int dimension)
-
Method Details
-
real
-
realVector
-
positive
-
positiveVector
-
lowerBound
-
upperBound
-
bounded
-
boundedVector
-
offsetMultiplier
-
ordered
-
positiveOrdered
-
sumToZero
-
simplex
-
unitVector
Stan-compatible unit-vector normalization transform. -
covarianceMatrix
Stan-compatible covariance-matrix transform, stored row-major. -
correlationMatrix
Stan-compatible correlation-matrix (LKJ/CPC) transform, stored row-major. -
choleskyFactorCovariance
Stan-compatible lower Cholesky factor of anrows x columnscovariance matrix. -
choleskyFactorCorrelation
Stan-compatible Cholesky factor of a correlation matrix, stored row-major. -
repeated
Repeats an independent constraint transform, as required for arrays of constrained values.
-