Hello Coders- For calculating the Moment, Skew and Kurtosis, i found
the following function in the help of C++ builder; But i couln't
understand this, of how to use this;
What i have is the data in a 1-d array;, say, Data[200]
Can somebody tell me how to use this to find the MomentSkewKurtosis ?
Copied from C++ help;
extern PACKAGE void __fastcall MomentSkewKurtosis(const double * Data,
const int Data_Size, Extended &M1, Extended &M2, Extended &M3, Extended
&M4, Extended &Skew, Extended &Kurtosis);
Extended offers greater precision than other real types but is less
portable. Be careful using Extended if you are creating data files to
share across platforms.
Thanks
Raj 4 4611
Hi!
Use it like this:
Extended M1; // first moment
Extended M2; // second moment
Extended M3; // third moment
Extended M4; // fourth moment
Extended Skew; // skew
Extended Kurtosis; // kurtosis
MomentSkewKurtosis(Data, 200, M1, M2, M3, M4, Skew, Kurtosis);
Now you have the moments in M1, M2, M3, M4, the skew in Skew and kurtosis in
Kurtosis.
Konstantin
Raj wrote:
Hello Coders- For calculating the Moment, Skew and Kurtosis, i found
the following function in the help of C++ builder; But i couln't
understand this, of how to use this;
What i have is the data in a 1-d array;, say, Data[200]
Can somebody tell me how to use this to find the MomentSkewKurtosis ?
Copied from C++ help;
extern PACKAGE void __fastcall MomentSkewKurtosis(const double * Data,
const int Data_Size, Extended &M1, Extended &M2, Extended &M3, Extended
&M4, Extended &Skew, Extended &Kurtosis);
Extended offers greater precision than other real types but is less
portable. Be careful using Extended if you are creating data files to
share across platforms.
Thanks
Raj
Hi
My data is an array, how do i pass my array here.? IS it i should pass
my data array by reference?
I am confused in this.
thanks
Raj
Konstantin Miller wrote:
Hi!
Use it like this:
Extended M1; // first moment
Extended M2; // second moment
Extended M3; // third moment
Extended M4; // fourth moment
Extended Skew; // skew
Extended Kurtosis; // kurtosis
MomentSkewKurtosis(Data, 200, M1, M2, M3, M4, Skew, Kurtosis);
Now you have the moments in M1, M2, M3, M4, the skew in Skew and kurtosis in
Kurtosis.
Konstantin
Raj wrote:
Hello Coders- For calculating the Moment, Skew and Kurtosis, i found
the following function in the help of C++ builder; But i couln't
understand this, of how to use this;
What i have is the data in a 1-d array;, say, Data[200]
Can somebody tell me how to use this to find the MomentSkewKurtosis ?
Copied from C++ help;
extern PACKAGE void __fastcall MomentSkewKurtosis(const double * Data,
const int Data_Size, Extended &M1, Extended &M2, Extended &M3, Extended
&M4, Extended &Skew, Extended &Kurtosis);
Extended offers greater precision than other real types but is less
portable. Be careful using Extended if you are creating data files to
share across platforms.
Thanks
Raj
"Raj" <kr****@yahoo.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
Hi
Please don't top-post. Replies belong at the bottom, or interspersed with
what you're replying to, as appropriate. I've re-arranged the conversation:
>>
Hello Coders- For calculating the Moment, Skew and Kurtosis, i found
the following function in the help of C++ builder; But i couln't
understand this, of how to use this;
What i have is the data in a 1-d array;, say, Data[200]
Can somebody tell me how to use this to find the MomentSkewKurtosis ?
Copied from C++ help;
extern PACKAGE void __fastcall MomentSkewKurtosis(const double * Data,
const int Data_Size, Extended &M1, Extended &M2, Extended &M3, Extended
&M4, Extended &Skew, Extended &Kurtosis);
Extended offers greater precision than other real types but is less
portable. Be careful using Extended if you are creating data files to
share across platforms. Use it like this:
Extended M1; // first moment Extended M2; // second moment Extended M3; // third moment Extended M4; // fourth moment Extended Skew; // skew Extended Kurtosis; // kurtosis
MomentSkewKurtosis(Data, 200, M1, M2, M3, M4, Skew, Kurtosis);
Now you have the moments in M1, M2, M3, M4, the skew in Skew and kurtosis in Kurtosis.
My data is an array, how do i pass my array here.? IS it i should pass
my data array by reference?
Did you _try_ doing it like you were shown?
It's perfectly normal to pass an array using just its name to a function
expecting a pointer to the type the array holds. You don't have to do
anything special. The array simply gets passed as a pointer. You _could_
pass the address of the first element of the array, using &(Data[0]), but
there's no need. Just give it the array name, and you'll be fine.
-Howard
Many Thanks; It works
Howard wrote:
>
Did you _try_ doing it like you were shown?
It's perfectly normal to pass an array using just its name to a function
expecting a pointer to the type the array holds. You don't have to do
anything special. The array simply gets passed as a pointer. You _could_
pass the address of the first element of the array, using &(Data[0]), but
there's no need. Just give it the array name, and you'll be fine.
-Howard
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nik Coughlin |
last post by:
Are there methods for manipulating images in JavaScript that would allow me
to write functions to rotate, skew, mask and resize images (bitmaps)?
The functions need to be fast enough for use in a...
|
by: cwdjrxyz |
last post by:
Javascript has a very small math function list. However there is no
reason that this list can not be extended greatly. Speed is not an
issue, unless you nest complicated calculations several levels...
|
by: ctate |
last post by:
Dear All,
I want to write an user defined aggregate function to calculate skewness and Kurtosis of data in a column of a table. Could you please help me to do that.
I know how to add the code...
|
by: pezholio |
last post by:
Hi,
I'm having a bit of trouble using Google Maps and the Google Ajax Search API, I'm trying to take a postcode, geocode it and then calculate the distance between the that postcode and a second...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| | |