This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Rx = require('rx'); | |
function RefCountObservable(source) { | |
this._source = source; | |
} | |
RefCountObservable.prototype = Object.create(Rx.Observable.prototype); | |
RefCountObservable.prototype._refCount = 0; | |
RefCountObservable.prototype._subject = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Rx = require('rx'); | |
(function(exports) { | |
function shiftLeft(list, value) { | |
var result = list.slice(1); | |
result.push(value); | |
return result; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename uint_t> | |
uint_t | |
PointKDTreeImplImpl<uint_t>::partitionAroundMedian( | |
uint_t idxBegin, | |
uint_t idxEnd, | |
KDTreeAxis axis) | |
{ | |
uint_t halfSize = (idxEnd - idxBegin) / 2; | |
uint_t idxMedian = idxBegin + halfSize; |
NewerOlder