#ifndef _Vector_h_
#define _Vector_h_
/* Vector.h; Paul Boersma, April 7, 2001 */

/* Vector inherits from Matrix */
/* A Vector is a Matrix with a single row. */
#ifndef _Matrix_h_
	#include "Matrix.h"
#endif

#define Vector_members  Matrix_members
#define Vector_methods  Matrix_methods
class_create (Vector, Matrix)

double Vector_getValueAtX (I, double x, int interpolationDepth);

void Vector_getMinimumAndX (I, double xmin, double xmax, int interpolation,
	double *return_minimum, double *return_xOfMinimum);
void Vector_getMaximumAndX (I, double xmin, double xmax, int interpolation,
	double *return_minimum, double *return_xOfMinimum);
double Vector_getMinimum (I, double xmin, double xmax, int interpolation);
double Vector_getMaximum (I, double xmin, double xmax, int interpolation);
double Vector_getAbsoluteExtremum (I, double xmin, double xmax, int interpolation);
double Vector_getXOfMinimum (I, double xmin, double xmax, int interpolation);
double Vector_getXOfMaximum (I, double xmin, double xmax, int interpolation);

double Vector_getMean (I, double xmin, double xmax);
double Vector_getRootMeanSquare (I, double xmin, double xmax);
double Vector_getStandardDeviation (I, double xmin, double xmax);
double Vector_getEnergy (I, double xmin, double xmax);
double Vector_getPower (I, double xmin, double xmax);

void Vector_addScalar (I, double scalar);
void Vector_subtractMean (I);
void Vector_multiplyByScalar (I, double scalar);
void Vector_scale (I, double scale);

/* End of file Vector.h */
#endif
