public class MeanVarianceEstimatorTest extends Object
Constructor and Description |
---|
MeanVarianceEstimatorTest() |
Modifier and Type | Method and Description |
---|---|
void |
testDuplicateRows()
Duplicate row
|
void |
testInterpolate()
Tests two things: 1.
|
void |
testMeanVarianceNoDesignWithColsRowAllMissing()
Data has missing values, no Design matrix provided so plot a generic mean-variance plot
|
void |
testMeanVarianceNoDesignWithMissing()
Data has missing values, no Design matrix provided so plot a generic mean-variance plot (no voom)
|
void |
testVoom()
Test calculation of weights for LeastSquaresFitting.
|
public void testInterpolate() throws Exception
Exception
- R code:
x = c(9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.0)
y = c(1.0, 0.25, 0.1111111111111111, 0.0625, 0.04, 0.027777777777777776, 0.02040816326530612, 0.015625, 0.012345679012345678, 0.01)
interpolate = c(9.5, 8.5, 7.5, 6.5, 5.5, 4.5, 3.5, 2.5, 1.5, 0.5)
f<-approxfun(x,y,rule=2)
f(c(interpolate))public void testVoom() throws Exception
Exception
public void testMeanVarianceNoDesignWithColsRowAllMissing() throws Exception
Exception
Copyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.