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