Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: how to efficiently storing floating point numbers with limited
Hi,

in fact you are trying to save something quite similar to 32-bit
floating point numbers... The numbers you want to represent, without
considering the floating point, are about 2*10^9, that are something
less than 2^31, so for an 'uncompressed coding' you will need 31bits +
3 sign bits = 34bits.

Now for compression: writing some numbers with fewer bits will save
some bits for these less precise values, but will lose some for the
others as you will have to write something to distinguish the two
cases. Your gain will depend on how many numbers are in a class and
how many in the other.

Apart this, if you consider that any number may appear in an equally
probable way, you cannot compress your data, as it would be a random
sequence. Don't you have any information about the type of numbers you
will store ? If for example you can save values in order that could be
already something to exploit. Or maybe numbers in an interval are more
probable than others ? Or values close one to another have chances to
have similar values ? Consider these possibilities, and maybe there's
something you can do...

Hope this helps,
Stefano


Report this thread to moderator Post Follow-up to this message
Old Post
Stefano Brocchi
04-01-08 12:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compression archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:08 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.