Itseez/opencv — pull request #3474 by xianglin01 (2014-12-02 17:38:55+00:00)
Title: Restructure ml::ANN_MLP using matrix operations

for better performance & readability of ml::ANN_MLP class in machine learning repository, the code is reorganized using all matrix operations. a **brief intro** is attached for every functions, but actually the code lines are still shrinked from 1321 to 1069 (see ann.cpp). here is (an)a (un)change list about this pr:

unchanged features:
1.interfaces are compatible with original
2.algorithms stay the same

changed features:
1.algorithms realized using matrix operations (see /modules/ml/src/ann.cpp)
2.rename ann_mlp to ann
3.provide a sample to demostrate the power of ann (see /samples/cpp/tutorial_code/ml/neural_networks)

machine learning algorithms can be very useful in various fields, so i submit this pr hoping this can bring us some contribution.