void TSpectrumTransform::Transform(const float *source, float *destVector)
{
///////////////////////////////////////////////////////////////////////////////
// ONE-DIMENSIONAL TRANSFORM FUNCTION
// This function transforms the source spectrum. The calling program
// should fill in input parameters.
// Transformed data are written into dest spectrum.
//
// Function parameters:
// source-pointer to the vector of source spectrum, its length should
// be size except for inverse FOURIER, FOUR-WALSH, FOUR-HAAR
// transform. These need 2*size length to supply real and
// imaginary coefficients.
we should use float instead of double (as well as the header file http://root.cern.ch/root/html522/src/TSpectrumTransform.h.html).
Unless the code of TSpectrumTransform.cxx and TSpectrumTransform.h I found are the older version, that doc is wrong.