diff options
author | Brijeshcr | 2017-07-07 19:57:00 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-07 19:57:00 +0530 |
commit | eb4fd4f84b56a9b8f1976a67461f2c918edede32 (patch) | |
tree | ad6032b0992e679f9d69e98074141267888f5c03 /src/c/signalProcessing/%k/dmodka.c | |
parent | aa250753b439916e4df235839e9266f058632f80 (diff) | |
parent | 936bd00d2855553f52d682494814804065c7b99e (diff) | |
download | scilab2c-eb4fd4f84b56a9b8f1976a67461f2c918edede32.tar.gz scilab2c-eb4fd4f84b56a9b8f1976a67461f2c918edede32.tar.bz2 scilab2c-eb4fd4f84b56a9b8f1976a67461f2c918edede32.zip |
Signal Processing and Demos Updated
Diffstat (limited to 'src/c/signalProcessing/%k/dmodka.c')
-rw-r--r-- | src/c/signalProcessing/%k/dmodka.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/c/signalProcessing/%k/dmodka.c b/src/c/signalProcessing/%k/dmodka.c index c0630ec0..8368cb6b 100644 --- a/src/c/signalProcessing/%k/dmodka.c +++ b/src/c/signalProcessing/%k/dmodka.c @@ -1,3 +1,14 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Ankit Raj + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ #include<stdio.h> #include<math.h> #include "modk.h" @@ -10,7 +21,6 @@ double max_calc(double* ptr,int sz) ptr[0]=-1*ptr[0]; } mx=(ptr[0]); - //printf("%lf\n",mx); for(i=1;i<sz;i++) { if(ptr[i]<0) @@ -47,10 +57,7 @@ void dmodka(double* inp,int size,double* oup) c[l]=sqrt(inp[l]); } - int x=0; - //double maxi; - //maxi=max_calc(c,size); - //printf("%lf",maxi); + int x=0; while(max_calc(c,size)>eps) { @@ -88,10 +95,4 @@ void dmodka(double* inp,int size,double* oup) } } -/* -int main() -{ - double m[3]={0.1,0.2,0.3}; - dka(m,3); -} -*/ + |