Implement an algorithm to detect anomalous patterns in a continuous stream of numerical data for Gridware.