00001 package commandline.Distributions; 00002 00003 public class NormalIndicesDistribution_2A_Power_Law extends NormalIndicesDistribution_1A_Power_Law{ 00004 00005 public NormalIndicesDistribution_2A_Power_Law(VerticalDistribution_Power_Law distribution_Power_Law){ 00006 super(distribution_Power_Law); 00007 } 00008 00009 00010 00011 private void addProbabilityForVertikalOffset(float[] helft,int index,int H,int L){ 00012 float v=(0.5f-index)*L*L/(float)H-H/2f; 00013 float f_v=(float)this.distribution_Power_Law.getPMF_at(v,-1f,-1d); 00014 // at 'index' (left peak) 00015 float p_peak= 1f/2f; // see drawing-> dirac 00016 helft[index]+=f_v*p_peak; 00017 } 00018 00019 00020 }
1.5.5