public class DblSort extends java.lang.Object implements Displayable
Modifier and Type | Field and Description |
---|---|
protected DblSortUnit[] |
Array |
protected int |
Dimension |
protected DblMatrix |
Indices |
protected DblMatrix |
Sorted |
protected int |
Start |
protected int |
Stop |
protected Subscript[] |
SubsIndex |
protected Subscript[] |
SubsSorted |
Modifier and Type | Method and Description |
---|---|
DblMatrix |
applyTo(DblMatrix x)
Permutes the input matrix along the first dimension according the
the current values of these sorted indices.
|
DblMatrix |
applyTo(DblMatrix x,
int dim)
Permutes the input matrix along the given dimension according the
the current values of these sorted indices.
|
DblMatrix |
getIndices()
Get the permuted indices along the sorted dimension.
|
DblMatrix |
getSorted()
Get the sorted DblMatrix.
|
int |
getStart()
Get the current starting index.
|
int |
getStop()
Get the current stopping index.
|
void |
mapToIndices(DblMatrix idx)
The indices will be assigned to the input vector of indices after they are permuted by
the current indices.
|
void |
prune()
Prune the Sorted leaving only the data between the Start and Stop.
|
void |
pruneNoMod()
Prune the Sorted leaving only the data between the Start and Stop.
|
void |
setDescending(boolean x) |
void |
setDimension(int Dim)
Set the dimension of the sort.
|
void |
setStart(int I)
Set the start index of the sort.
|
void |
setStop(int I)
Set the stop index of the sort.
|
void |
show()
Show the sorted data.
|
void |
show(java.lang.String Label)
Show the sorted data using the given String label.
|
void |
sort()
Perform an ascending sort along the current dimension.
|
protected DblSortUnit[] Array
protected int Dimension
protected int Start
protected int Stop
protected DblMatrix Sorted
protected DblMatrix Indices
protected Subscript[] SubsSorted
protected Subscript[] SubsIndex
public DblSort(DblMatrix X, int Dim)
public DblMatrix applyTo(DblMatrix x, int dim)
public DblMatrix applyTo(DblMatrix x)
public void setDescending(boolean x)
public int getStart()
public int getStop()
public void show(java.lang.String Label)
show
in interface Displayable
public void show()
show
in interface Displayable
public DblMatrix getSorted()
public void mapToIndices(DblMatrix idx)
public DblMatrix getIndices()
public void setStart(int I)
public void setStop(int I)
public void setDimension(int Dim)
public void sort()
public void pruneNoMod()
public void prune()