class JLB_LambdaContraction(mmf.ulb:Contraction) {
;The Lambda formula as a Contraction.
public:
; @param pz
; @param pc
; @return the new pz
complex func Iterate(complex pz, complex pc)
if (@p_std)
return pc * pz * (1 - pz)
else
return (pc-@p_coffset)*(pz-@p_zoffset)*(1-pz+@p_zoffset)^(@p_power-1)
endif
endfunc
private:
default:
title = "Lambda"
int param v_Lambdacontraction
caption = "Version (Lambda_Contraction)"
default = 100
hint = "This version parameter is used to detect when a change has \
been made to the formula that is incompatible with the \
previous version. When that happens, this field will reflect \
the old version number to alert you to the fact that an \
alternate rendering is being used."
visible = @v_Lambdacontraction < 100
endparam
bool param p_std
caption = "Standard"
default = true
endparam
complex param p_power
caption = "Power"
default = (2,0)
visible = !@p_std
endparam
complex param p_zoffset
caption = "pz offset"
default = (0,0)
visible = !@p_std
endparam
complex param p_coffset
caption = "pc offset"
default = (0,0)
visible = !@p_std
endparam
}