1/******************************************************************************
2 * $Id: AKFS_VNorm.h 580 2012-03-29 09:56:21Z yamada.rj $
3 ******************************************************************************
4 *
5 * Copyright (C) 2012 Asahi Kasei Microdevices Corporation, Japan
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19#ifndef AKFS_INC_VNORM_H
20#define AKFS_INC_VNORM_H
21
22#include "AKFS_Device.h"
23
24/***** Prototype of function **************************************************/
25AKLIB_C_API_START
26int16 AKFS_VbNorm(
27	const	int16	ndata,		/*!< Size of raw vector buffer */
28	const	AKFVEC	vdata[],	/*!< Raw vector buffer */
29	const	int16	nbuf,		/*!< Size of data to be buffered */
30	const	AKFVEC*	o,			/*!< Offset */
31	const	AKFVEC*	s,			/*!< Sensitivity */
32	const	AKFLOAT	tgt,		/*!< Target sensitivity */
33	const	int16	nvec,		/*!< Size of normalized vector buffer */
34			AKFVEC	vvec[]		/*!< Normalized vector buffer */
35);
36
37int16 AKFS_VbAve(
38	const	int16	nvec,		/*!< Size of normalized vector buffer */
39	const	AKFVEC	vvec[],		/*!< Normalized vector buffer */
40	const	int16	nave,		/*!< Number of averaeg */
41			AKFVEC*	vave		/*!< Averaged vector */
42);
43
44AKLIB_C_API_END
45
46#endif
47
48