This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static double[,] KernelDensityEstimation(double[] data, double sigma, int nsteps) | |
{ | |
// probability density function (PDF) signal analysis | |
// Works like ksdensity in mathlab. | |
// KDE performs kernel density estimation (KDE)on one - dimensional data | |
// http://en.wikipedia.org/wiki/Kernel_density_estimation | |
// Input: -data: input data, one-dimensional | |
// -sigma: bandwidth(sometimes called "h") | |
// -nsteps: optional number of abscis points.If nsteps is an |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package macko; | |
import javafx.beans.Observable; | |
import javafx.collections.FXCollections; | |
import javafx.collections.ObservableList; | |
import javafx.geometry.Pos; | |
import javafx.geometry.Side; | |
import javafx.scene.Cursor; | |
import javafx.scene.Node; | |
import javafx.scene.chart.Axis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Get web page screenshot | |
# | |
# usage: | |
# xvfb-run -s "-screen 0 1024x768x24" python getschreenshot.py test.html | |
# | |
# libs: | |
# - pygtk: http://www.pygtk.org/ | |
# - pywebkitgtk(python-webkit): http://code.google.com/p/pywebkitgtk/ | |
# - PIL: http://www.pythonware.com/products/pil/ |