Find distance function, hide model inference. - Liu, Jingjing; Brown, Eli T.; Chang, Remco (2011)