Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power return NaN #1030

Open
engrwuang opened this issue Sep 8, 2023 · 0 comments
Open

Power return NaN #1030

engrwuang opened this issue Sep 8, 2023 · 0 comments

Comments

@engrwuang
Copy link

I would like to raise a question. When I use Fit.Power, it returns NaN, but if I change the model to Polynomial, there is no such error. I want to know if there are any restrictions on the Power method. I analyzed the program step by step and found that NaN occurred in Power's LinearCombination. I hope to get your answer.
Here is my code:
double[] y = y_data.ToArray(); double[] x = x_data.ToArray(); (double,double) powerFitResult = Fit.Power(x, y);
By the way, I normalized the data, will it make a difference?

@engrwuang engrwuang changed the title Power Power return NaN Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant