0
$\begingroup$

Alrighty, math noob here, so be nice :P. We're building an app and need an exponential function that exists between zero and one, and, depending on the importance we give it, will fluctuate between rising near the beginning or end of the graph.

Lemme know if you have any ideas or need clarification :P

$\endgroup$
7
  • 1
    $\begingroup$ You need to clarify your question, it doesn't make much sense (at least to me). $\endgroup$ Jul 16, 2011 at 1:51
  • $\begingroup$ You mean like $1-\exp(-x)$? $\endgroup$
    – Emre
    Jul 16, 2011 at 2:00
  • $\begingroup$ something like this: plus.google.com/104554751324609579088/posts/6RZbHExUmF2 $\endgroup$ Jul 16, 2011 at 2:19
  • 1
    $\begingroup$ @Chris: It is if $x$ lies between $0$ and $1$, as your picture suggests. If in fact $x$ ranges over an interval $[a,b]$, use $\left(\frac{x-a}{b-a} \right)^\alpha$ for $\alpha>0$. $\alpha$ close to $0$ gives you a high importance curve, and large $\alpha$ gives you a low importance curve. You can think of $1/\alpha$ as a measure of the importance. $\endgroup$ Jul 16, 2011 at 2:42
  • 1
    $\begingroup$ "You need to clarify your question, it doesn't make much sense" - even a crude sketch of the curve you'd like to see would be awfully nice... $\endgroup$ Jul 16, 2011 at 4:17

2 Answers 2

2
$\begingroup$

Maybe you mean power law rather than exponential. In that case @fedja's suggestion is great: $x^a$. $a<1$ for low importance and $a>1$ for high importance.

$\endgroup$
1
$\begingroup$

Sounds like you want the Logistic function. The values are between 0 and 1, though the growth is centered around $0$ and it has an exponential in it. You can shift it horizontally by adding a constant to $x$ and change the steepness by changing $e^{-x}$ to $e^{-ax}$ for your choice of $a$. Does that work?

$\endgroup$
1
  • $\begingroup$ yeah.. similar but not quite there. this looks to be an s-curve, I'm looking for more of what was in the graph I linked above. $\endgroup$ Jul 16, 2011 at 8:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .