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
RLSF <- function(y,x,alpha=0.95,ist=30,xpxi=NULL,xpy0=NULL) | |
{ | |
# http://queue.acm.org/detail.cfm?id=2534976 | |
if(!is.matrix(x))x=as.matrix(x) | |
nT=dim(x)[1] | |
k=dim(x)[2] | |
xpx0 = NULL | |
# | |
if(is.null(xpxi)){ | |
if(ist <= k)ist=k+1 |
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
namespace Test | |
open System | |
open System.Linq | |
open System.Linq.Expressions | |
//thanks to http://v2matveev.blogspot.ru/2010/06/f-performance-of-events.html | |
// helper type that will perform invocation | |
type internal Invoker<'D, 'A> = delegate of 'D * obj * 'A -> unit |
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
[Test] | |
public void CursorShouldGetLessOrEqual() { | |
_db = _txn.OpenDatabase(flags: DbFlags.None); | |
var db2 = _txn.OpenDatabase("test_le", | |
DbFlags.Create | DbFlags.IntegerKey); | |
using (var cur = _txn.CreateCursor(db2)) { | |
int[] keys = new int[10000000]; |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Data | |
{ | |
[Serializable] | |
public class OrderedList<TKey, TValue> : IDictionary<TKey, TValue>, IDictionary | |
{ |
NewerOlder