comparison rDiff/src/variance/estimate_variance.m @ 0:0f80a5141704

version 0.3 uploaded
author vipints
date Thu, 14 Feb 2013 23:38:36 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0f80a5141704
1 function [VARIANCE]=estimate_variance(MEANS,VARS)
2 %estimates the variance using the locfit package
3
4 IDX_ZERO=and(VARS>=0,MEANS>0);
5 VARIANCE =locfit(log(MEANS(IDX_ZERO)),VARS(IDX_ZERO),'family','gamma','acri','cp','deg',2,'maxk',1000);
6
7 return