Skip to content

compute_directionsignificancedotproduct

  COMPUTE_DIRECTIONSIGNIFICANCEDOTPRODUCT Direction tuning significance using dot product with empirical orientation preference


   P = COMPUTE_DIRECTIONSIGNIFIANCEDOTPRODUCT(ANGLES, RATES)

   This function calculates the probability that the "true" direction tuning
   vector of a neuron has non-zero length. It performs this by empirically
   determing the unit orientation vector, and then computing the dot
   product of the direction vector for each trial onto the overall orientation
   vector, and then looking to see if the average is non-zero.

   Inputs:  ANGLES is a vector of direction angles at which the response has
            been measured. 
            RATES is the response of the neuron in to each angle; each row
            should contain responses from a different trial.
   Output:  P the probability that the "true" direction tuning vector is
            non-zero.

   See: Mazurek, Kagan, Van Hooser 2014;  Frontiers in Neural Circuits