This is easy to implement. Anyways the parameter f1, f2,f3 are not independent but they are the value of a function f(x,N) calculated respectively x=mu1, x=mu2, x=mu3.
I was not able to implement such dependence in the definition of the pdf, it could be very useful because i’ll only use the parameter N instead of f1,f2,f3.