Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
ta-lib porting with swig
BENI
3/13/2007 10:52:00 AM
I have a function in c from ta-lib (TA-Lib provides common functions
for the technical analysis of financial market data)
http://t...
function header
=======
TA_RetCode TA_MA( int startIdx,
int endIdx,
const double inReal[],
int optInTimePeriod,
int optInMAType,
int *outBegIdx,
int *outNbElement,
double outReal[],
)
===========
In c it is called as
==========
TA_Real closePrice[400];
TA_Real out[400];
TA_Integer outBeg;
TA_Integer outNbElement;
/* ... initialize your closing price here... */
retCode = TA_MA( 0, 399,
&closePrice[0],
30,TA_MAType_SMA,
&outBeg, &outNbElement, &out[0] );
/* The output is displayed here */
for( i=0; i < outNbElement; i++ )
printf( "Day %d = %f\n", outBeg+i, out[i] );
================================
i was wondering how will the typemap in SWIG look like for arguments
const double inReal[]
int *outBegIdx
int *outNbElement,
double outReal[],
=============
can any one help me out by giving some lead?
regards
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
ta-lib porting with swig
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password