pkpd.protocols.protocol_pkpd_particle_size module

class pkpd.protocols.protocol_pkpd_particle_size.ProtPKPDParticleSize(**kwargs)[source]

Bases: pkpd.protocols.protocol_pkpd.ProtPKPD

Estimate the particle size distribution parameters. The size is supposed to be log-normal and the mean and standard deviation of the log-normal distribution are estimated. Given a set of particle sizes {x1, x2, …, xN} and a set of bin occupancies (they can be in absolute or relative counts or mass) {p1, p2, …, pN}, this protocol estimates the parameters of the log-normal distribution that is compatible with these observations. It also reports the fitting quality of the distribution.

If it is descending order, then it is assumed that p1=Prob{x1<=x<x2}, p2=Prob{x2<=x<x3}, …, pN=Prob{x<=xN} If it is ascending order, then it is assumed that p1=Prob{x<=x1}, p2=Prob{x1<x<=x2}, …, pN=Prob{xN<=x}

The program calculates the mu and sigma of the log-normal distribution and their exponentials.

calculate()[source]