Skip to content

About the parameters for generating grains based on a pdf #919

Answered by rquey
mario-renderos asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know (this distribution was contributed), but here is the code:

else if (!strcmp (Fct.type, "skewnormal"))
{
const double factor = (x - Fct.mean) / (Fct.sigma * sqrt (2.));
val =
(1. +
erf (factor * Fct.gamma)) * exp (-pow (factor,
2)) / (Fct.sigma * sqrt (2. *
M_PI));
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rquey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants