473,386 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Floating point data analysis

Hi,

I'm creating a VB.NET stock market application that Iprocesses stock
market price data in
VB.NET 2005 Express.

Price data is held in "double" floating point array, eg:-
highprice(0-9999) and comparisons are done between highprice(0-9999)
and lowprice(0-9999).

I'm using arrays in memory for this, however suggestions on this group
have said that either hashtables or arraylists would be better for
performance.

Does anyone have any experience with the speed performances here?

Thanks,
Alex

Aug 17 '06 #1
4 1135
yeah.
use a database
Ali Chambers wrote:
Hi,

I'm creating a VB.NET stock market application that Iprocesses stock
market price data in
VB.NET 2005 Express.

Price data is held in "double" floating point array, eg:-
highprice(0-9999) and comparisons are done between highprice(0-9999)
and lowprice(0-9999).

I'm using arrays in memory for this, however suggestions on this group
have said that either hashtables or arraylists would be better for
performance.

Does anyone have any experience with the speed performances here?

Thanks,
Alex
Aug 17 '06 #2
OK - short of using a database, which is faster for large floating
point arrays:

- Hashtable
- Array
- Arraylist

And does anyone know the order of difference magnitude?

AC

Aug 17 '06 #3
how many members do you have?

what features do you need?

-Aaron
Ali Chambers wrote:
OK - short of using a database, which is faster for large floating
point arrays:

- Hashtable
- Array
- Arraylist

And does anyone know the order of difference magnitude?

AC
Aug 17 '06 #4
Each price array (double-type floating point) has about 1000-2000 data
items. There are 4 price arrays per stock (open price, close price,
high & low).

There is no actual data alterations. I am just looking at a price a day
ago, comparing to the next day, day after that - that's a simple
explanation. The process repeats many many times.

I then create moving averages of prices. Buy prices are held in memory,
and the price data is looped through until the price hits a sell point.

Thanks,
Alex

Aug 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: j_mckitrick | last post by:
I checked the docs, but found nothing about floating point issues. I am working on an app that deals with currency values, and only does addition and subtraction (no division). But I am starting...
4
by: Dave | last post by:
Hi folks, I am trying to develop a routine that will handle sphere-sphere and sphere-triangle collisions and interactions. My aim is to develop a quake style collision engine where a player can...
31
by: JS | last post by:
We have the same floating point intensive C++ program that runs on Windows on Intel chip and on Sun Solaris on SPARC chips. The program reads the exactly the same input files on the two platforms....
15
by: michael.mcgarry | last post by:
Hi, I have a question about floating point precision in C. What is the minimum distinguishable difference between 2 floating point numbers? Does this differ for various computers? Is this...
32
by: ma740988 | last post by:
template <class T> inline bool isEqual( const T& a, const T& b, const T epsilon = std::numeric_limits<T>::epsilon() ) { const T diff = a - b; return ( diff <= epsilon ) && ( diff >= -epsilon );...
6
by: Cezary Noweta | last post by:
Hello, In Control Panel, Regional Settings, set decimal point to something other then dot ,,.'' (ASCII 0x2E). Let it be comma (ASCII 0x2C) for example. Compile and run the following code ===...
39
by: rembremading | last post by:
Hi all! The following piece of code has (for me) completely unexpected behaviour. (I compile it with gcc-Version 4.0.3) Something goes wrong with the integer to float conversion. Maybe somebody...
9
by: pereges | last post by:
Hi, I'm trying to write a macro for the relative difference function which is used to check the close enough floating point values. Is this correct way to write it ? : #define max(x, y) ((x)...
9
by: ssubbarayan | last post by:
Hi all, I am trying a program to convert floating point values to a byte array and printing the same to the screen.The idea behind this is we already have an existing function which can do byte...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
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...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.