Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
DataTable compute function on non standard datatypes
Frank Litjens
Jul 16 2010 7:37 AM
6.9k
Reply
I have a problem with the following situation. Instead of using a standard datatype in my datatable column I have the following XYSet structure.
public struct XYSet
{
public int x1;
public int y1;
public int x2;
public int y2;
public double rc;
public double offset;
}
m_resultTable.Columns.Add(new DataColumn("A", typeof(XYSet)));
m_resultTable.Columns.Add(new DataColumn("B", typeof(XYSet)));
Now I would like to use the Compute function of DataTable in order to calculate the standard deviation of the rc values in both A and B XYSet column. Is it possible the use the Compute function or do I have t create a new datatable having all structure values in a their own column after which the Compute function can be used.
Thanks for helping me out.
Regards,
Frank
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Find the COM port for TAPI devices
Testing if a file is complete