Class DoubleVectorValueObject
- java.lang.Object
-
- ubic.gemma.model.common.IdentifiableValueObject<DataVector>
-
- ubic.gemma.model.expression.bioAssayData.DataVectorValueObject
-
- ubic.gemma.model.expression.bioAssayData.DoubleVectorValueObject
-
- All Implemented Interfaces:
Serializable
,Identifiable
- Direct Known Subclasses:
SlicedDoubleVectorValueObject
public class DoubleVectorValueObject extends DataVectorValueObject
Simple wrapper for a double[] that is derived from a DesignElementDataVector.- Author:
- paul
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ubic.gemma.model.expression.bioAssayData.DataVectorValueObject
byteArrayConverter
-
Fields inherited from class ubic.gemma.model.common.IdentifiableValueObject
id
-
-
Constructor Summary
Constructors Constructor Description DoubleVectorValueObject(DesignElementDataVector dedv, Collection<Long> genes, BioAssayDimensionValueObject badVo)
DoubleVectorValueObject(DesignElementDataVector dedv, BioAssayDimensionValueObject badVo)
DoubleVectorValueObject(DesignElementDataVector dedv, BioAssayDimensionValueObject vectorsBadVo, Collection<Long> genes, BioAssayDimension dimToMatch)
Create a vector where we expect to have to create one or more gaps to match other vectors, defined by dimToMatch.DoubleVectorValueObject(DoubleVectorValueObject dvvo)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
double[]
getData()
Double
getPvalue()
Double
getRank()
Double
getRankByMax()
Double
getRankByMean()
boolean
isMasked()
boolean
isReorganized()
void
setData(double[] data)
void
setMasked(boolean masked)
void
setPvalue(Double pvalue)
void
setRank(Double rank)
void
setReorganized(boolean reorganized)
SlicedDoubleVectorValueObject
slice(ExpressionExperimentSubSet subset, BioAssayDimensionValueObject bad)
Crate a vector that is a slice of this one.double[]
standardize()
-
Methods inherited from class ubic.gemma.model.expression.bioAssayData.DataVectorValueObject
getBioAssayDimension, getBioAssays, getDesignElement, getExpressionExperiment, getGenes, getQuantitationType, hashCode, setBioAssayDimension, setDesignElement, setExpressionExperiment, setGenes, setQuantitationType, toString
-
Methods inherited from class ubic.gemma.model.common.IdentifiableValueObject
getId, setId
-
-
-
-
Constructor Detail
-
DoubleVectorValueObject
public DoubleVectorValueObject(DesignElementDataVector dedv, Collection<Long> genes, BioAssayDimensionValueObject badVo)
-
DoubleVectorValueObject
public DoubleVectorValueObject(DesignElementDataVector dedv, BioAssayDimensionValueObject badVo)
-
DoubleVectorValueObject
public DoubleVectorValueObject(DesignElementDataVector dedv, BioAssayDimensionValueObject vectorsBadVo, Collection<Long> genes, BioAssayDimension dimToMatch)
Create a vector where we expect to have to create one or more gaps to match other vectors, defined by dimToMatch.- Parameters:
dimToMatch
- ensure that the vector missing values to match the locations of any bioassays in dimToMatch that aren't in the dedv's bioAssayDimension.genes
- genesdedv
- dedvvectorsBadVo
- BA dimension vo
-
DoubleVectorValueObject
public DoubleVectorValueObject(DoubleVectorValueObject dvvo)
Copy constructor.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDataVectorValueObject
-
getData
public double[] getData()
-
setData
public void setData(double[] data)
-
getPvalue
public Double getPvalue()
-
setPvalue
public void setPvalue(Double pvalue)
-
getRank
public Double getRank()
-
setRank
public void setRank(Double rank)
-
getRankByMax
public Double getRankByMax()
-
getRankByMean
public Double getRankByMean()
-
isMasked
public boolean isMasked()
-
setMasked
public void setMasked(boolean masked)
-
isReorganized
public boolean isReorganized()
- Returns:
- true if the data has been rearranged relative to the bioassay dimension (as a matter of practice the bioassay dimension should be set to null if it is not valid; this boolean is an additional check)
-
setReorganized
public void setReorganized(boolean reorganized)
-
slice
public SlicedDoubleVectorValueObject slice(ExpressionExperimentSubSet subset, BioAssayDimensionValueObject bad)
Crate a vector that is a slice of this one. Create a vector that is a slice of another one. The bioassays chosen are as given in the supplied bioassay dimension.- Parameters:
subset
- a subset by which we are slicingbad
- all we nee is the id, the name and the list of bioassays from this.Svec
- VO
-
standardize
public double[] standardize()
- Returns:
- data adjusted to mean 0, variance 1.
-
-