World's most popular travel blog for travel bloggers.

[Solved]: How to logarithmic interpolation?

, , No Comments
Problem Detail: 

I'm trying to interpolate a logarithmic function but it always reaches a singularity due to $\log(0)$ being $-\infty$

is there a correct way to interpolate logarithmic functions? (as in correct parameters)

What i'm currently going for is

$y=a+b \log(cx)$

with initial values

$a=0$, $b=1$, $c=0$

Asked By : Jean-Luc Nacif Coelho

Answered By : user35945

The general fitting formula for pretty much any function is $F(x)=a*x+b$

so if you have a function inside a function it would be $F(G(x))=a*G(c*x+d)+b$ by virtue of substitution.

You made a tiny error. Instead of $y=a+b \log(cx)$ you probably want $y=a+b \log(cx + d)$

try to fit your function again. a multiplier should never equal to zero, because that would imply you don't have a function of $x$.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/25945

0 comments:

Post a Comment

Let us know your responses and feedback