Beispiel #1
0
        private IVarinceData DealockDataAndReturnThem()
        {
            var data = varianceData;

            varianceData = null; //preventing memory leaks
            return(data);
        }
Beispiel #2
0
        private void InitialiseData(IMovement meanMovement, ISetOfMovements setOfMovements)
        {
            varianceData = new VarianceData();

            varianceData.MeanMovement = meanMovement;

            graphLength = meanMovement.Sensors.First().EMG.Length;  //all of them has to have same length
            varianceData.NormalizedSetOfMovements = new NormalizedSetOfMovements(setOfMovements, graphLength);

            int numOfMovements = setOfMovements.Movements.Count;

            varianceData.Deviations           = new double[numOfMovements];
            varianceData.NormalizedDeviations = new double[numOfMovements];
        }