Rik's Treehouse > Babbling in Binary > My Software > Orphanware > R2DToo > R2DToo Help > For the Programmer > tState

tState

Declaration
Remarks
Revisions
See Also

Declaration

typedef float tState;
Top of page

Remarks

tState is the type for agent state variables. Defined in api2model.h.
Top of page

Revisions

API v1.1
  • changed from int to single-precision floating point.

    The decision to change this data type in API version 1.1 was not made lightly. Do not expect it to change again. I decided to do it early in the development of R2DToo before many models had been developed. The reason the change occured was because I found I needed the advantages of floating point numbers more frequently in my models than integers (the main advantage of which was bitwise manipulation). The speed penalty is estimated at 5% and was deemed worthwhile for the added convenience of rational numbers.

Top of page

See Also

pState
Top of page
[Rik's Office Hours] [Contact Rik]
Last updated: Fri Apr 30 2004, 1:46pm