title: how to make Sliding window model for data stream mining?
body: <p>we have a situation that a stream (data from sensor or click stream data at server) is coming with sliding window algorithm we have to store the last (say) 500 samples of data in memory. These samples are then used to create histograms, aggregations &amp; capture information about anomalies in the input data stream.</p>
  
  <p>please tell me how to make such sliding window.</p>