Skip to content
jamesjun edited this page Nov 1, 2017 · 1 revision

CUDA code to compute the distance separation Delta used for DPCLUS

Syntax

  • jrc3_cuda_delta(float * vrDelta1, unsigned int * viNneigh1, const float * mrFet12, const int * viiSpk12_ord, const int * viiRho12_ord, const int * vnConst, const float dc2)

Input

  • mrFet12: feature matrix (nC x n12: single)
  • viiSpk12_ord: Temporal order of spikes (n12 x 1: int32)
  • viiRho12_ord: Rho sort order (ascending order)
  • vnConst: [n1, n12, nC, dn_max, fDc_spk]
    • n1: number of spikes to compute rho
    • n12: total number of spikes
    • nC: number of features
    • dn_max: max. time index difference
    • fDc_spk: Flag to compute dc on fly. Set to 0 if you supplied dc2.
  • dc2: Distance cut-off squared (single)

Output

  • vrDelta1: distance separation (n1 x 1: single)
  • viNneigh1: Nearest neighbor index
Clone this wiki locally