In this section we add examine input/output features for our histograms.
We want to add to the histogram classes the ability to save histograms
to disk files and then to read back the data from these files and
rebuild the histograms. We show a couple of different ways to do
this. We also look at using stream filtering as a way to modify
data, such as calibrating raw data, as it is read into a histogram..
- Histogram Input/Output - use writing
and reading histograms as an example of basic I/O techniques
- Histogram I/O - uses getter
methods to obtain the data for saving the histogram and setter
methods to create new histogram with values retrieved from the
- Hist I/O with Objects - use serialization
to send and receive objects.
- Histogram Stream - send a stream
of data to a histogram. That is, the histogram becomes the destination
for the stream.
- Histogram Filtering - filter
a stream of data going to a histogram destination.
Latest update: Nov. 14, 2004