Skip to content

Instantly share code, notes, and snippets.


use gist.el in Emacs to manage gist

git config --global github.user yitang 
git config --global github.token dcxxxxxx
yitang / drag.cpp
Last active Aug 17, 2016
some descriptions
View drag.cpp
#include <Rcpp.h>
#include <cmath> // ::ceil
using namespace Rcpp;
//' linear inter/extropolation.
//' combination of stats::approx and Hmisc::Hmisc.
//' @para x
//' @para y
//' @para xx where interpolation is to take place.
yitang / gist:d6420b695799101f1865
Last active May 31, 2019
Rcpp point in polygon
View gist:d6420b695799101f1865
#include <Rcpp.h>
using namespace Rcpp;
// ref:
// Copyright 2000 softSurfer, 2012 Dan Sunday
// This code may be freely used and modified for any purpose
// providing that this copyright notice is included with it.
// SoftSurfer makes no warranty for this code, and cannot be held
// liable for any real or imagined damage resulting from its use.
// Users of this code must verify correctness for their application.