Today took a little while to catch up; we got an idea for our next prototype (which thankfully incorporates the accelerometer work I was doing a couple of days ago!) so I'll be getting to working on a 2D prototype, as opposed to a funky 3D perspective.
The problem? We got our homework for programming (finally) in which we are set to compress a set of floating point numbers in 5-16 bits each and writing it to a stream without padding.
...How? How do we compress like this? Even the way to convert the float to a bitwise operable type (*(unsigned long*)(&f)?) was strange, and there seems to be no particular way we know or have been taught to compress or truncate bits in either the exponential or fractional part.
We can window dress the code to take in a set of data and read only the floats as necessary, but there's only so much that we can do without really knowing how to do it. Luckily I know how root mean squares work, so once I get those values in, then I can get down to business.
No comments:
Post a Comment