* Test method for 'ca.nengo.math.impl.IndicatorPDF.map(float[])'
*/
public void testMap() {
PDF pdf = new IndicatorPDF(-1, 1);
assertClose(0f, pdf.map(new float[]{-1.5f}));
assertClose(.5f, pdf.map(new float[]{-0.5f}));
assertClose(.5f, pdf.map(new float[]{0.5f}));
assertClose(0f, pdf.map(new float[]{1.5f}));
pdf = new IndicatorPDF(5, 5);
assertEquals(Float.POSITIVE_INFINITY, pdf.map(new float[]{5}));