GithubHelp home page GithubHelp logo

zvant / fouriertransformfit Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 568 KB

Fourier transformation and fitting. A curve is a series of moving circles.

Home Page: https://github.com/zvant/FourierTransformFit/wiki

HTML 2.90% Java 97.10%

fouriertransformfit's People

Contributors

zvant avatar

Watchers

 avatar  avatar

fouriertransformfit's Issues

Javadoc generated

Now using in src/

javadoc -private -d ../doc/ -J-Duser.language=en_US -encoding UTF-8 -charset UTF-8 -docencoding UTF-8 -subpackages fourier

transformation now functional

Now we can draw several points on the panel and get the corresponding curve. But due to our poor algorithm the Array of sample points and the coefficients now has to have the same size. Which means we have to set the slider n to equal to the number of samples N.

Please read the comments around 370L in GraphicFitting.java

repaint bug for loaded image

after an image was loaded to the panel, if the whole window is manually resized, the image would not move to the center of the panel immediately. Maybe one more repaint operation is needed.

Coefficients updating

To update the coefficients table that is bound with the array coef[], add the following code snippet

for (int i = 0; i < n; i++) {
  coefficients_table.setValueAt(coef[i].re(), i, 1);
  coefficients_table.setValueAt(coef[i].im(), i, 2);
  coefficients_table.setValueAt(coef[i], i, 3);
}

which is already there at 353L of GraphicFitting.java

Negative orders preferred

In discreate FT, N-1 -th order is actually equivalent to -1-th order. By folding the higher N/2 orders to negative orders, the high order coefficients are much lower and the resulting curve is smooth.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.