mdd/gpu/SAX.cpp
series_t normalize(series_t timeSeries, const long size)
{
	double start = omp_get_wtime();
	#pragma acc parallel vector_length(32)
	#pragma acc loop gang worker
	for (size_t i = 0; i < size; i++) {
		// normalize around baseline
		timeSeries[i] = (timeSeries[i] - m_baseline_mean) / m_baseline_stdev;
	}
	double end = omp_get_wtime();
	*_time += (end - start);
	return timeSeries;
}
/*
 * Normalize time series to zero mean and stdev
 */
Normalize time series to zero mean and stdev
Normalize time series to zero mean and stdev
series_t normalize(series_t timeSeries, const long size)
{
	double start = omp_get_wtime();
	#pragma acc parallel vector_length(32)
	#pragma acc loop gang worker
	for (size_t i = 0; i < size; i++) {
		timeSeries[i] = (timeSeries[i] - m_baseline_mean) / m_baseline_stdev;
	}
	double end = omp_get_wtime();
	*_time += (end - start);
	return timeSeries;
}
series_t normalize ( series_t timeSeries , const long size ) { double start = omp_get_wtime ( ) ; #pragma  acc parallel vector_length(32) #pragma  acc loop gang worker for ( size_t i = 0 ; i < size ; i ++ ) { timeSeries [ i ] = ( timeSeries [ i ] - m_baseline_mean ) / m_baseline_stdev ; } double end = omp_get_wtime ( ) ; * _time += ( end - start ) ; return timeSeries ; }
Normalize time series to zero mean and stdev
Normalize time series to zero mean and stdev
// normalize around baseline