I've got some C# code I need to get into my B4A project, and it has a big lookup table.
In the C# original code, the DataSet class is used. The table data consists of around 400 rows with 4 columns containing doubles and, ints.
I also have the lookup table data in excel, so I thought it would be easiest if I can somehow format the data in excel and paste it in as some form of const definition, but I'm having a bit of a brain fail as to where to begin, and I'm not certain what the most memory efficient way of doing this is.
Here's a paste of the first few lines of the 400 in excel
Age Lspline Mspline Sspline
3 1.3876 -0.0221 -0.0832
3.25 1.2621 -0.0191 -0.0616
3.5 1.1460 -0.0167 -0.0420
3.75 1.0382 -0.0147 -0.0242
4 0.9377 -0.0132 -0.0085
4.25 0.8437 -0.0122 0.0047
Has anyone got any suggestions for a starting point? I need to retrieve the spline values using the age.
Thanks.
In the C# original code, the DataSet class is used. The table data consists of around 400 rows with 4 columns containing doubles and, ints.
I also have the lookup table data in excel, so I thought it would be easiest if I can somehow format the data in excel and paste it in as some form of const definition, but I'm having a bit of a brain fail as to where to begin, and I'm not certain what the most memory efficient way of doing this is.
Here's a paste of the first few lines of the 400 in excel
Age Lspline Mspline Sspline
3 1.3876 -0.0221 -0.0832
3.25 1.2621 -0.0191 -0.0616
3.5 1.1460 -0.0167 -0.0420
3.75 1.0382 -0.0147 -0.0242
4 0.9377 -0.0132 -0.0085
4.25 0.8437 -0.0122 0.0047
Has anyone got any suggestions for a starting point? I need to retrieve the spline values using the age.
Thanks.