src/dk/itu/pitlab/libeyetracking/core/DataLaundry.java
public synchronized GazeData launder(final GazeData data) {
        if (push(data) == null)
            return null;
        final GazeData smooth = Utils.emptyDataFrom(data);
        int n = 0;
        for (final GazeData sample : cache) {
            if (sample != null) {
                ++n;
                Utils.addTo(smooth, sample);
            }
        }
        this.last = Utils.divide(smooth, n);
        return getLastSmooth();
    }
/**
     * Smoothes and launders data. If the tracking state is bad, the return value will be the last valid tracking data.
     * Otherwise, the good data will be returned.
     *
     * @param data Tracking data to launder and cache.
     * @return The laundered tracking data.
     */
Smoothes and launders data. If the tracking state is bad, the return value will be the last valid tracking data.
Otherwise, the good data will be returned.

@param data Tracking data to launder and cache.
@return The laundered tracking data.
Smoothes and launders data . If the tracking state is bad the return value will be the last valid tracking data . Otherwise the good data will be returned . @param data Tracking data to launder and cache . @return The laundered tracking data .
public synchronized GazeData launder(final GazeData data) {
        if (push(data) == null)
            return null;
        final GazeData smooth = Utils.emptyDataFrom(data);
        int n = 0;
        for (final GazeData sample : cache) {
            if (sample != null) {
                ++n;
                Utils.addTo(smooth, sample);
            }
        }
        this.last = Utils.divide(smooth, n);
        return getLastSmooth();
    }
public synchronized GazeData launder ( final GazeData data ) { if ( push ( data ) == null ) return null ; final GazeData smooth = Utils . emptyDataFrom ( data ) ; int n = 0 ; for ( final GazeData sample : cache ) { if ( sample != null ) { ++ n ; Utils . addTo ( smooth , sample ) ; } } this . last = Utils . divide ( smooth , n ) ; return getLastSmooth ( ) ; }
Smoothes and launders data.
Smoothes and launders data .