00001 package commandline.Distributions; 00002 00003 import junit.framework.Assert; 00004 00005 import commandline.ImageStuff.GeometricObjects.GenericEdge; 00006 00007 public class NormalIndicesDistribution_1B extends NormalIndicesDistribution { 00008 00009 00010 public NormalIndicesDistribution_1B() { 00011 super(); 00012 00013 // TODO Auto-generated constructor stub 00014 } 00015 00016 00017 protected double evaluatePDF(double x, float A_0, float A_1,GenericEdge edge) { 00018 float H=edge.getHoogte(); 00019 float length=edge.getEuclidischeLengte(); 00020 Assert.assertTrue(H>=length); 00021 length=length/H; 00022 x=x/H; 00023 00024 00025 H=1; // H=H/H 00026 return (float) (1/length); 00027 } 00028 00029 }
1.5.5