1. A method of analyzing neurophysiological data recorded from a brain of a subject, the method comprising: recording the neurophysiological data by a plurality of measuring devices respectively placed at a plurality of different locations on the scalp of the subject, operating a data processor for: identifying activity-related features in the data; parceling the data according to said activity-related features to define a plurality of capsules, each representing a spatiotemporal activity region in the brain and corresponding to an extremum of the data and a spatiotemporal neighborhood defined as a spatial region in which said extremum is located and a time-interval during which said extremum occurs, wherein a size of said neighborhood is determined based on a property of said extremum; storing said capsules in a memory; comparing at least some of said defined capsules to at least one reference capsule; estimating a brain function of the subject based on said comparison and; generating on a display an output indicative of said brain function.