Utils
ABMEv.DiversityFunction
— Typestruct DiversityFunction
ABMEv.arithsmooth
— Methodfunction arithsmooth(x,y,smooth)
-x
is the shifted x-axis vector, due to smoothing -y
is the smoothed value Returning a tuple
ABMEv.arithsmooth
— Methodfunction arithsmooth(x,smooth)
arithmetic smoothing
ABMEv.arithsmooth2D
— Methodfunction arithsmooth2D(xa,ya,itp,smooth)
Return xas,yas,A where A is an interpolated matrix with arithmetic smooth, whose axis are xas, yas
ARGS
xa
xaxis values, ya
yaxis values, itp
interpolation function, smooth
smoothing function
ABMEv.gaussian
— Method gaussian(x::Number,mu::Number,sigma::Number) = generalised_gaussian(x,mu,sigma,2)
ABMEv.generalised_gaussian
— Method generalised_gaussian(x::Number,mu::Number,sigma::Number,epsilon::Number)
Returns exp( -.5 * ((x-mu) / sigma)^epsilon)
ABMEv.geomsmooth
— Methodfunction geomsmooth(x,y,smooth)
-x
is the shifted x-axis vector, due to smoothing -y
is the smoothed value Returning a tuple
ABMEv.geomsmooth
— Methodfunction geomsmooth(x,smooth)
Geometric smoothing, cf https://en.wikipedia.org/wiki/Exponential_smoothing
ABMEv.geomsmooth2D
— Methodfunction geomsmooth2D(xa,ya,itp,smooth)
Return xas,yas,A where A is an interpolated matrix with geometric smooth, whose axis are xas, yas
ARGS
xa
xaxis values, ya
yaxis values, itp
interpolation function, smooth
smoothing function
ABMEv.interpolate_df
— Methodfunction interpolate_df(df,xlab,ylab,zlab)
returns an interpolated function itp(x,y) -> z, as well as its axis xa
and ya
ABMEv.ma
— Methodma(x::Array{T},f) where T <: Number
Moving average over array x, using f as the filter, i.e. the number of points to average on. Better choosing an odd number
DataFrames.groupby
— Methodfunction groupby(f, list::Array)
returns a dictionary that group list
elements by value of function f