00001 package commandline.Distributions; 00002 00003 import junit.framework.Assert; 00004 00005 import commandline.ImageStuff.GeometricObjects.GenericEdge; 00006 import commandline.debuggingCode.Debug; 00007 00008 public class NormalIndicesDistribution_1B_discr extends 00009 NormalIndicesDistribution_1B_paper { 00010 00011 public NormalIndicesDistribution_1B_discr() { 00012 super(); 00013 } 00014 00015 @Override 00016 protected double evaluatePDF(double x, float n_0, 00017 float n_1, GenericEdge edge) { 00018 double H=edge.getHoogte(); 00019 double L=edge.getLengte(); 00020 00021 if(Debug.DEBUG)Assert.assertTrue(H>=edge.getEuclidischeLengte()); 00022 00023 return (1/L); 00024 } 00025 00026 }
1.5.5