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_2B_discr extends 00009 NormalIndicesDistribution_2B_paper { 00010 00011 public NormalIndicesDistribution_2B_discr() { 00012 super(); 00013 // TODO Auto-generated constructor stub 00014 } 00015 00016 00017 @Override 00018 protected double evaluatePDF(double x, float n_0, 00019 float n_1, GenericEdge edge) { 00020 double H=edge.getHoogte(); 00021 double L=edge.getLengte(); 00022 if(Debug.DEBUG) Assert.assertTrue(H>=edge.getEuclidischeLengte()); 00023 if(x==0 || x==L-1){ 00024 return 0.5;} 00025 else{ 00026 return 0;} 00027 00028 } 00029 00030 00031 00032 00033 00034 00035 00036 }
1.5.5