Refactoring regression/pa.cpp

The details are as follows.
* rename calc_norm to squared_norm, which is used in classifier_base
* remove redundant code
* fix code style(use 0.f for float type)