How to draw a bell curve in android?
<p>I am trying to draw a bell curve(Normal distribution) in android.Is there any free library for this  from which i can get some help or any other way. I tried a way but i think this is not appropriate. I used this equation, increasing the x-axis by myself and getting the y-axis co-ordinates with respect to x-axis.</p>

<pre><code>for (int i = 0; i &lt; 1000; i++) {
        x =  (float) ( i * 0.5);
        yy=(float) (1/Math.sqrt(0.5)*Math.sqrt(2*Math.PI));
        y=(float) (yy*Math.exp(-Math.pow(x, 2)/2*.5));
        xcord.add(x);
        ycord.add(y);
    }
</code></pre>

<p>and then drawing line by using this</p>

<pre><code>for(i=0;i&lt;arraysize;i++)
canvas.drawLine(xcord.get(i),ycord.get(i),xcord.get(i+1),ycord.get(i+1), paint);
</code></pre>

<p>I have not succeeded though, don't know how to get coordinates which will form a bell curve.</p>
