protocol
multivariate_distributions_protocol
Multivariate probability distribution predicates.
logtalk_load(multivariate_distributions(loader))staticPublic predicates
multivariate_normal/3
Returns a multivariate normally distributed random vector using the default numerical tolerance of 1.0e-12. Singular positive-semidefinite covariance matrices are supported.
staticmultivariate_normal(Mean,Covariance,Sample)multivariate_normal(+list(number),+list(list(number)),-list(float)) - one_or_errorMean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)multivariate_normal/4
Returns a multivariate normally distributed random vector using the given non-negative numerical tolerance. Singular positive-semidefinite covariance matrices are supported.
staticmultivariate_normal(Mean,Covariance,Tolerance,Sample)multivariate_normal(+list(number),+list(list(number)),+number,-list(float)) - one_or_errorMean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Tolerance is negative:domain_error(non_negative_number,Tolerance)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)multivariate_normal_samples/4
Returns the requested number of multivariate normally distributed random row vectors using the default numerical tolerance of 1.0e-12.
staticmultivariate_normal_samples(Count,Mean,Covariance,Samples)multivariate_normal_samples(+integer,+list(number),+list(list(number)),-list(list(float))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is an integer but not a non-negative integer:domain_error(non_negative_integer,Count)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)multivariate_normal_samples/5
Returns the requested number of multivariate normally distributed random row vectors using the given non-negative numerical tolerance.
staticmultivariate_normal_samples(Count,Mean,Covariance,Tolerance,Samples)multivariate_normal_samples(+integer,+list(number),+list(list(number)),+number,-list(list(float))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is an integer but not a non-negative integer:domain_error(non_negative_integer,Count)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)multivariate_normal_density/4
Computes the multivariate normal density at a point using the default numerical tolerance of 1.0e-12. For a singular covariance matrix, computes the density on its affine support and returns zero outside it.
staticmultivariate_normal_density(Point,Mean,Covariance,Density)multivariate_normal_density(+list(number),+list(number),+list(list(number)),-float) - one_or_errorMean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)Point is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the mean dimension:domain_error(point_dimensions(A),Point)multivariate_normal_density/5
Computes the multivariate normal density at a point using the given non-negative numerical tolerance. For a singular covariance matrix, computes the density on its affine support and returns zero outside it.
staticmultivariate_normal_density(Point,Mean,Covariance,Tolerance,Density)multivariate_normal_density(+list(number),+list(number),+list(list(number)),+number,-float) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the mean dimension:domain_error(point_dimensions(A),Point)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)multivariate_normal_log_density/4
Computes the multivariate normal log-density at a point using the default numerical tolerance of 1.0e-12. Returns the atom negative_infinity outside the affine support of a singular covariance matrix.
staticmultivariate_normal_log_density(Point,Mean,Covariance,LogDensity)multivariate_normal_log_density(+list(number),+list(number),+list(list(number)),-atomic) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the mean dimension:domain_error(point_dimensions(A),Point)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)multivariate_normal_log_density/5
Computes the multivariate normal log-density at a point using the given non-negative numerical tolerance. Returns the atom negative_infinity outside the affine support of a singular covariance matrix.
staticmultivariate_normal_log_density(Point,Mean,Covariance,Tolerance,LogDensity)multivariate_normal_log_density(+list(number),+list(number),+list(list(number)),+number,-atomic) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the mean dimension:domain_error(point_dimensions(A),Point)Tolerance is negative:domain_error(non_negative_number,Tolerance)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)squared_mahalanobis_distance/4
Computes the squared Mahalanobis distance using the default numerical tolerance of 1.0e-12.
staticsquared_mahalanobis_distance(Point,Mean,Covariance,SquaredDistance)squared_mahalanobis_distance(+list(number),+list(number),+list(list(number)),-float) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point is outside the affine support of Covariance:domain_error(covariance_support,Point)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)squared_mahalanobis_distance/5
Computes the squared Mahalanobis distance using the given non-negative numerical tolerance.
staticsquared_mahalanobis_distance(Point,Mean,Covariance,Tolerance,SquaredDistance)squared_mahalanobis_distance(+list(number),+list(number),+list(list(number)),+number,-float) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point is outside the affine support of Covariance:domain_error(covariance_support,Point)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)mahalanobis_distance/4
Computes the Mahalanobis distance using the default numerical tolerance of 1.0e-12.
staticmahalanobis_distance(Point,Mean,Covariance,Distance)mahalanobis_distance(+list(number),+list(number),+list(list(number)),-float) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point is outside the affine support of Covariance:domain_error(covariance_support,Point)Point dimensions do not match the mean dimension:domain_error(point_dimensions(A),Point)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)mahalanobis_distance/5
Computes the Mahalanobis distance using the given non-negative numerical tolerance.
staticmahalanobis_distance(Point,Mean,Covariance,Tolerance,Distance)mahalanobis_distance(+list(number),+list(number),+list(list(number)),+number,-float) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point is outside the affine support of Covariance:domain_error(covariance_support,Point)Point dimensions do not match the mean dimension:domain_error(point_dimensions(A),Point)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)multivariate_t/4
Returns a multivariate Student’s t distributed random vector using the default numerical tolerance of 1.0e-12.
staticmultivariate_t(DegreesOfFreedom,Location,Scale,Sample)multivariate_t(+positive_number,+list(number),+list(list(number)),-list(float)) - one_or_errorDegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor an integer:type_error(integer,DegreesOfFreedom)DegreesOfFreedom is not a positive integer:domain_error(positive_number,DegreesOfFreedom)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)multivariate_t/5
Returns a multivariate Student’s t distributed random vector using the given non-negative numerical tolerance.
staticmultivariate_t(DegreesOfFreedom,Location,Scale,Tolerance,Sample)multivariate_t(+positive_number,+list(number),+list(list(number)),+number,-list(float)) - one_or_errorDegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor a number:type_error(number,DegreesOfFreedom)DegreesOfFreedom is a number but not a positive number:domain_error(positive_number,DegreesOfFreedom)Tolerance is negative:domain_error(non_negative_number,Tolerance)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)multivariate_t_samples/5
Returns the requested number of multivariate Student’s t distributed random row vectors using the default numerical tolerance of 1.0e-12.
staticmultivariate_t_samples(Count,DegreesOfFreedom,Location,Scale,Samples)multivariate_t_samples(+integer,+positive_number,+list(number),+list(list(number)),-list(list(float))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is an integer but not a non-negative integer:domain_error(non_negative_integer,Count)DegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor a number:type_error(number,DegreesOfFreedom)DegreesOfFreedom is a number but not a positive number:domain_error(positive_number,DegreesOfFreedom)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)multivariate_t_samples/6
Returns the requested number of multivariate Student’s t distributed random row vectors using the given non-negative numerical tolerance.
staticmultivariate_t_samples(Count,DegreesOfFreedom,Location,Scale,Tolerance,Samples)multivariate_t_samples(+integer,+positive_number,+list(number),+list(list(number)),+number,-list(list(float))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is a negative integer:domain_error(non_negative_integer,Count)DegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor a number:type_error(number,DegreesOfFreedom)DegreesOfFreedom is a number but not a positive number:domain_error(positive_number,DegreesOfFreedom)Tolerance is negative:domain_error(non_negative_number,Tolerance)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)multivariate_t_density/5
Computes the multivariate Student’s t density using the default numerical tolerance of 1.0e-12. Returns zero outside the affine support of a singular scale matrix.
staticmultivariate_t_density(Point,DegreesOfFreedom,Location,Scale,Density)multivariate_t_density(+list(number),+positive_number,+list(number),+list(list(number)),-float) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the location dimension:domain_error(point_dimensions(A),Point)DegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor a number:type_error(number,DegreesOfFreedom)DegreesOfFreedom is a number but not a positive number:domain_error(positive_number,DegreesOfFreedom)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)multivariate_t_density/6
Computes the multivariate Student’s t density using the given non-negative numerical tolerance. Returns zero outside the affine support of a singular scale matrix.
staticmultivariate_t_density(Point,DegreesOfFreedom,Location,Scale,Tolerance,Density)multivariate_t_density(+list(number),+positive_number,+list(number),+list(list(number)),+number,-float) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the location dimension:domain_error(point_dimensions(A),Point)DegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor a number:type_error(number,DegreesOfFreedom)DegreesOfFreedom is a number but not a positive number:domain_error(positive_number,DegreesOfFreedom)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)multivariate_t_log_density/5
Computes the multivariate Student’s t log-density using the default numerical tolerance of 1.0e-12. Returns negative_infinity outside singular affine support.
staticmultivariate_t_log_density(Point,DegreesOfFreedom,Location,Scale,LogDensity)multivariate_t_log_density(+list(number),+positive_number,+list(number),+list(list(number)),-atomic) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the location dimension:domain_error(point_dimensions(A),Point)DegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor a number:type_error(number,DegreesOfFreedom)DegreesOfFreedom is a number but not a positive number:domain_error(positive_number,DegreesOfFreedom)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)multivariate_t_log_density/6
Computes the multivariate Student’s t log-density using the given non-negative numerical tolerance. Returns negative_infinity outside singular affine support.
staticmultivariate_t_log_density(Point,DegreesOfFreedom,Location,Scale,Tolerance,LogDensity)multivariate_t_log_density(+list(number),+positive_number,+list(number),+list(list(number)),+number,-atomic) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Point dimensions do not match the location dimension:domain_error(point_dimensions(A),Point)DegreesOfFreedom is a variable:instantiation_errorDegreesOfFreedom is neither a variable nor a number:type_error(number,DegreesOfFreedom)DegreesOfFreedom is a number but not a positive number:domain_error(positive_number,DegreesOfFreedom)Location is empty:domain_error(minimum_number_of_values(1),Location)Scale dimensions do not match the location dimension:domain_error(covariance_dimensions(A),Scale)Scale is not symmetric:domain_error(symmetric_matrix,Scale)Scale is not positive semidefinite:domain_error(positive_semidefinite_matrix,Scale)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)logistic_normal/3
Returns an additive-log-ratio logistic-normal random vector using the default numerical tolerance of 1.0e-12. A latent vector of length d maps to a simplex vector of length d+1 using the final component as reference.
staticlogistic_normal(Mean,Covariance,Sample)logistic_normal(+list(number),+list(list(number)),-list(float)) - one_or_errorMean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)logistic_normal/4
Returns an additive-log-ratio logistic-normal random vector using the given non-negative numerical tolerance.
staticlogistic_normal(Mean,Covariance,Tolerance,Sample)logistic_normal(+list(number),+list(list(number)),+number,-list(float)) - one_or_errorMean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)logistic_normal_samples/4
Returns the requested number of additive-log-ratio logistic-normal random row vectors using the default numerical tolerance of 1.0e-12.
staticlogistic_normal_samples(Count,Mean,Covariance,Samples)logistic_normal_samples(+integer,+list(number),+list(list(number)),-list(list(float))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is an integer but not a non-negative integer:domain_error(non_negative_integer,Count)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)logistic_normal_samples/5
Returns the requested number of additive-log-ratio logistic-normal random row vectors using the given non-negative numerical tolerance.
staticlogistic_normal_samples(Count,Mean,Covariance,Tolerance,Samples)logistic_normal_samples(+integer,+list(number),+list(list(number)),+number,-list(list(float))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is an integer but not a non-negative integer:domain_error(non_negative_integer,Count)Mean is a variable or a partial list:instantiation_errorMean is neither a partial list nor a list:type_error(list,Mean)Element of the Mean list is neither a variable nor a number:type_error(number,Element)Mean is empty:domain_error(minimum_number_of_values(1),Mean)Covariance is a variable or a partial list:instantiation_errorCovariance is neither a partial list nor a list:type_error(list(list(number)),Covariance)Element of the Covariance list is neither a variable nor a list of numbers:type_error(list(number),Element)Covariance dimensions do not match the mean dimension:domain_error(covariance_dimensions(A),Covariance)Covariance is not symmetric:domain_error(symmetric_matrix,Covariance)Covariance is not positive semidefinite:domain_error(positive_semidefinite_matrix,Covariance)Tolerance is a variable:instantiation_errorTolerance is neither a variable nor a number:type_error(number,Tolerance)Tolerance is a nuber but not a non-negative number:domain_error(non_negative_number,Tolerance)dirichlet/2
Returns a Dirichlet distributed random vector on the simplex.
staticdirichlet(Alphas,Sample)dirichlet(+list(positive_number),-list(float)) - one_or_errorAlphas is a variable or a partial list:instantiation_errorAlphas is neither a partial list nor a list:type_error(list,Alphas)Element of the Alphas list is neither a variable nor a number:type_error(number,Element)Element of the Alphas list is not positive:domain_error(positive_number,Element)Alphas has fewer than two elements:domain_error(minimum_number_of_values(2),Alphas)dirichlet_samples/3
Returns the requested number of Dirichlet distributed random vectors.
staticdirichlet_samples(Count,Alphas,Samples)dirichlet_samples(+integer,+list(positive_number),-list(list(float))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is an integer but not a non-negative integer:domain_error(non_negative_integer,Count)Alphas is a variable or a partial list:instantiation_errorAlphas is neither a partial list nor a list:type_error(list,Alphas)Element of the Alphas list is neither a variable nor a number:type_error(number,Element)Element of the Alphas list is not positive:domain_error(positive_number,Element)Alphas has fewer than two elements:domain_error(minimum_number_of_values(2),Alphas)dirichlet_density/3
Computes the Dirichlet density at a point on the simplex. At a boundary, returns the atom positive_infinity when all non-unit alphas corresponding to zero components are smaller than one, zero when they are all greater than one, or undefined when both cases occur.
staticdirichlet_density(Point,Alphas,Density)dirichlet_density(+list(number),+list(positive_number),-atomic) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Alphas is a variable or a partial list:instantiation_errorAlphas is neither a partial list nor a list:type_error(list,Alphas)Element of the Alphas list is neither a variable nor a number:type_error(number,Element)Element of the Alphas list is not positive:domain_error(positive_number,Element)Point and Alphas have different lengths:domain_error(dimension_mismatch,Point)Alphas has fewer than two elements:domain_error(minimum_number_of_values(2),Alphas)dirichlet_log_density/3
Computes the Dirichlet log-density at a point on the simplex. At a boundary, returns the atom positive_infinity when all non-unit alphas corresponding to zero components are smaller than one, negative_infinity when they are all greater than one, or undefined when both cases occur.
staticdirichlet_log_density(Point,Alphas,LogDensity)dirichlet_log_density(+list(number),+list(positive_number),-atomic) - one_or_errorPoint is a variable or a partial list:instantiation_errorPoint is neither a partial list nor a list:type_error(list,Point)Element of the Point list is neither a variable nor a number:type_error(number,Element)Alphas is a variable or a partial list:instantiation_errorAlphas is neither a partial list nor a list:type_error(list,Alphas)Element of the Alphas list is neither a variable nor a number:type_error(number,Element)Element of the Alphas list is not positive:domain_error(positive_number,Element)Point and Alphas have different lengths:domain_error(dimension_mismatch,Point)Alphas has fewer than two elements:domain_error(minimum_number_of_values(2),Alphas)multinomial/3
Returns a multinomial distributed random count vector.
staticmultinomial(Trials,Probabilities,Counts)multinomial(+non_negative_integer,+list(probability),-list(non_negative_integer)) - one_or_errorTrials is a variable:instantiation_errorTrials is neither a variable nor an integer:type_error(integer,Trials)Trials is a negative integer:domain_error(non_negative_integer,Trials)Probabilities is a variable or a partial list:instantiation_errorProbabilities is neither a partial list nor a list:type_error(list,Probabilities)Element of the Probabilities list is neither a variable nor a float:type_error(float,Element)Element of the Probabilities list is a float but not a probability:domain_error(probability,Element)Probabilities is empty:domain_error(minimum_number_of_values(1),Probabilities)Probabilities do not sum to one:domain_error(probability_distribution,Probabilities)multinomial_samples/4
Returns the requested number of multinomial distributed random count vectors.
staticmultinomial_samples(Count,Trials,Probabilities,Samples)multinomial_samples(+integer,+non_negative_integer,+list(probability),-list(list(non_negative_integer))) - one_or_errorCount is a variable:instantiation_errorCount is neither a variable nor an integer:type_error(integer,Count)Count is an integer but not a non-negative integer:domain_error(non_negative_integer,Count)Trials is a variable:instantiation_errorTrials is neither a variable nor an integer:type_error(integer,Trials)Trials is a negative integer:domain_error(non_negative_integer,Trials)Probabilities is a variable or a partial list:instantiation_errorProbabilities is neither a partial list nor a list:type_error(list,Probabilities)Element of the Probabilities list is neither a variable nor a float:type_error(float,Element)Element of the Probabilities list is a float but not a probability:domain_error(probability,Element)Probabilities is empty:domain_error(minimum_number_of_values(1),Probabilities)Probabilities do not sum to one:domain_error(probability_distribution,Probabilities)multinomial_density/4
Computes the multinomial probability mass at the given count vector.
staticmultinomial_density(Counts,Trials,Probabilities,Density)multinomial_density(+list(non_negative_integer),+non_negative_integer,+list(probability),-float) - one_or_errorCounts is a variable or a partial list:instantiation_errorCounts is neither a partial list nor a list:type_error(list,Counts)Element of the Counts list is neither a variable nor an integer:type_error(integer,Element)Element of the Counts list is an integer but not a non-negative integer:domain_error(non_negative_integer,Element)Trials is a variable:instantiation_errorTrials is neither a variable nor an integer:type_error(integer,Trials)Trials is a negative integer:domain_error(non_negative_integer,Trials)Probabilities is a variable or a partial list:instantiation_errorProbabilities is neither a partial list nor a list:type_error(list,Probabilities)Element of the Probabilities list is neither a variable nor a float:type_error(float,Element)Element of the Probabilities list is a float but not a probability:domain_error(probability,Element)Probabilities is empty:domain_error(minimum_number_of_values(1),Probabilities)Probabilities do not sum to one:domain_error(probability_distribution,Probabilities)Counts and Probabilities have different lengths:domain_error(dimension_mismatch,Counts)multinomial_log_density/4
Computes the multinomial log-probability mass at the given count vector. Returns the atom negative_infinity for an impossible count vector.
staticmultinomial_log_density(Counts,Trials,Probabilities,LogDensity)multinomial_log_density(+list(non_negative_integer),+non_negative_integer,+list(probability),-atomic) - one_or_errorCounts is a variable or a partial list:instantiation_errorCounts is neither a partial list nor a list:type_error(list,Counts)Element of the Counts list is neither a variable nor an integer:type_error(integer,Element)Element of the Counts list is an integer but not a non-negative integer:domain_error(non_negative_integer,Element)Trials is a variable:instantiation_errorTrials is neither a variable nor an integer:type_error(integer,Trials)Trials is a negative integer:domain_error(non_negative_integer,Trials)Probabilities is a variable or a partial list:instantiation_errorProbabilities is neither a partial list nor a list:type_error(list,Probabilities)Element of the Probabilities list is neither a variable nor a float:type_error(float,Element)Element of the Probabilities list is a float but not a probability:domain_error(probability,Element)Probabilities is empty:domain_error(minimum_number_of_values(1),Probabilities)Probabilities do not sum to one:domain_error(probability_distribution,Probabilities)Counts and Probabilities have different lengths:domain_error(dimension_mismatch,Counts)multinomial_quantile/4
Computes a multinomial quantile (count vector) for a probability strictly between zero and one. Count vectors are ordered by decreasing probability mass and then by increasing lexicographic order for log-probabilities equal within a relative tolerance of 1.0e-12. The returned vector is the first whose cumulative probability mass is at least the requested probability. The exact computation is limited to 100000 count vectors.
staticmultinomial_quantile(Probability,Trials,Probabilities,Quantile)multinomial_quantile(+open_probability,+non_negative_integer,+list(probability),-list(non_negative_integer)) - one_or_errorProbability is a variable:instantiation_errorProbability is neither a variable nor a float:type_error(float,Probability)Probability is a float but not strictly between zero and one:domain_error(open_probability,Probability)Trials is a variable:instantiation_errorTrials is neither a variable nor an integer:type_error(integer,Trials)Trials is a negative integer:domain_error(non_negative_integer,Trials)Probabilities is a variable or a partial list:instantiation_errorProbabilities is neither a partial list nor a list:type_error(list,Probabilities)Element of the Probabilities list is neither a variable nor a float:type_error(float,Element)Element of the Probabilities list is a float but not a probability:domain_error(probability,Element)Probabilities is empty:domain_error(minimum_number_of_values(1),Probabilities)Probabilities do not sum to one:domain_error(probability_distribution,Probabilities)resource_error(multinomial_quantile_compositions)Protected predicates
(none)
Private predicates
(none)
Operators
(none)