pearson

Pearson correlation coefficient

In statistics, the Pearson product-moment correlation coefficient (sometimes referred to as the PMCC, and typically denoted by r) is a measure of the correlation (linear dependence) between two variables X and Y, giving a value between +1 and −1 inclusive.

/**
* calculate Pearson product-moment correlation [...]

Read full storyComments { 1 }

Normalization

Normalization is any process that makes something more normal.

/**
* @param point1 first point
* @param point2 second point
* @return the normalization Euclidean distance of two points
*/
public [...]

Read full storyComments { 0 }
Euclidean distance

Euclidean distance

In mathematics, the Euclidean distance or Euclidean metric is the “ordinary” distance between two points that one would measure with a ruler, and is given by the Pythagorean formula.
/**
* @param point1 first point
* @param point2 second [...]

Read full storyComments { 0 }

Gaussian distribution

The normal distribution or Gaussian distribution is a continuous probability distribution that often gives a good description of data that cluster around the mean.

/**
* The aim of this static method is to implememnt the function of Gaussian distribution
* [...]

Read full storyComments { 0 }

Gaussian elimination

In linear algebra, Gaussian elimination is an algorithm  for solving systems of linear equations, finding the rank of a matrix, and calculating the inverse of an invertible square matrix.
Gauss-Jordan Elimination is a variant of Gaussian Elimination.

package org.javaresources.math.matrix;
/**
* Created by IntelliJ IDEA.
* User: glen
* Date: 2010-3-29
* Time: 20:10:28
*
*/
public class MatrixUtil [...]

Read full storyComments { 0 }

Mysql + JSP Example

Java Database Connectivity (JDBC) is an API that lets you access any tabular data sources from a Java application.
This example shows a JSP that queries a UserInfo table using JDBC.

Name
password

Read full storyComments { 1 }

Mysql Connection

public static Connection getConnection() throws Exception {
String driver = “com.mysql.jdbc.Driver”;
String url = “jdbc:mysql://localhost/ev?”;
String username = “root”;
String password = “0532″;
Class.forName(driver); // load Oracle driver
return DriverManager.getConnection(url, username, password);
}

Read full storyComments { 1 }