Monthly Archives: August 2014

xcov and xcorr in Matlab

Matlab provides xcorr to calculate the cross/auto-correlation of two/one random variables. [r,lags]=xcorr(x,y,’coeff’) will calculate the cross-correlation of x and y using Here “coeff” optional keyword is used to normalize the result with L2-norm. However [c,lags]=xcov(x,y,’coeff’) calculates the cross-variance of x … Continue reading

Posted in Academic | Leave a comment

LeedCode: Candy There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requirements: Each child must have at least one candy. Children with a higher … Continue reading

Posted in LeetCode | Tagged | Leave a comment