:orphan: # PetscProbCreateFromOptions Return the probability distribution specified by the arguments and options ## Synopsis ``` #include "petscdt.h" PetscErrorCode PetscProbCreateFromOptions(PetscInt dim, const char prefix[], const char name[], PetscProbFunc *pdf, PetscProbFunc *cdf, PetscProbFunc *sampler) ``` Not Collective ## Input Parameters - ***dim -*** The dimension of sample points - ***prefix -*** The options prefix, or NULL - ***name -*** The option name for the probility distribution type ## Output Parameters - ***pdf -*** The PDF of this type - ***cdf -*** The CDF of this type - ***sampler -*** The PDF sampler of this type ## See Also `PetscProbFunc`, `PetscPDFMaxwellBoltzmann1D()`, `PetscPDFGaussian1D()`, `PetscPDFConstant1D()` ## Level intermediate ## Location src/dm/dt/interface/dtprob.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/interface/dtprob.c) [Index of all DT routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)