@ALDParametrizedClass public class ExperimentalData1D extends ALDData
The data consist of a time series of measurements of variable length. Additional information is a descriptive string, the time resolution in milliseconds, and whether baseline correction has been applied.
Modifier and Type | Field and Description |
---|---|
private boolean |
baselineCorrected
Are the data baseline corrected?
|
private Double[] |
data
The data
|
private String |
description
Description
|
private Float |
timeResolution |
Constructor and Description |
---|
ExperimentalData1D()
Standard constructor is required
|
ExperimentalData1D(String description,
Double[] data)
Constructor for an experiment.
|
ExperimentalData1D(String description,
Double[] data,
boolean baselineCorrected,
Float timeResolution)
Constructor for an experiment.
|
Modifier and Type | Method and Description |
---|---|
Double[] |
getData()
Return the data
|
String |
getDescription()
Get description.
|
int |
getNumberOfMeasurements()
Return number of measurements, i.e. the length of the 1D data
|
Float |
getTimeResolution()
Get time resolution in milliseconds.
|
boolean |
isBaselineCorrected()
Query if data are baseline corrected.
|
void |
print()
Print this data object to standard out
|
private void |
setData(Double[] data,
boolean baselineCorrected)
Set the data
|
cloneProperties, getLocation, getProperty, getPropertyKeys, setLocation, setProperty
@ALDClassParameter(label="description", dataIOOrder=1) private String description
@ALDClassParameter(label="data", dataIOOrder=2) private Double[] data
@ALDClassParameter(label="Baseline corrected", dataIOOrder=3) private boolean baselineCorrected
@ALDClassParameter(label="Time resolution in milliseconds", dataIOOrder=4) private Float timeResolution
public ExperimentalData1D()
public ExperimentalData1D(String description, Double[] data)
description
- a textual description of the experimentdata
- measurementspublic ExperimentalData1D(String description, Double[] data, boolean baselineCorrected, Float timeResolution)
description
- a textual description of the experimentdata
- measurementsbaselineCorrected
- true if the data are baseline correctedtimeResolution
- time resolution in milliseccondspublic void print()
ALDData
public int getNumberOfMeasurements()
public Double[] getData()
private void setData(Double[] data, boolean baselineCorrected)
data
- baselineCorrected
- are the data baseline corected?public String getDescription()
public Float getTimeResolution()
public boolean isBaselineCorrected()
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.