00001 package commandline.Distributions; 00002 00003 import junit.framework.Assert; 00004 00005 import commandline.ImageStuff.GeometricObjects.GenericEdge; 00006 00007 public class NormalIndicesDistribution_2B_paper extends 00008 NormalIndicesDistribution { 00009 00010 public NormalIndicesDistribution_2B_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 double H=edge.getHoogte(); 00019 double length=edge.getEuclidischeLengte(); 00020 Assert.assertTrue(H>=length); 00021 if(x==0 || x==length){ 00022 return 0.5;} 00023 else{ 00024 return 0;} 00025 00026 } 00027 00028 }
1.5.5