|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmaltcms.datastructures.array.ArrayFactory
public class ArrayFactory
A factory abstraction for creation of IArrayD2Double implementations.
| Constructor Summary | |
|---|---|
ArrayFactory()
|
|
| Method Summary | |
|---|---|
IArrayD2Double |
create(Array a)
Wraps an Array within a DenseArray. |
IArrayD2Double |
create(int rows,
int cols,
AnchorPairSet aps,
int neighborhood,
double band,
double default_value,
boolean globalBand)
Creates a PartitionedArray if number of passed in anchors is greater than 2. |
IArrayD2Double |
create(int rows,
int cols,
double default_value)
Creates a DenseArray with given number of rows, columns and default_value as initial value of elements. |
IArrayD2Double |
create(int rows,
int cols,
double default_value,
Area bounds)
Create an optimized array storing only those elements contained within the area bounds. |
IArrayD2Double |
createCopiedLayout(IArrayD2Double ia)
Creates a copied layout. |
BufferedImage |
createLayoutImage(IArrayD2Double ia)
|
IArrayD2Double |
createSharedLayout(IArrayD2Double ia)
Creating a shared layout is recommended, if you want to use a layout for multiple arrays. |
IArrayD2Double |
createSparseArray(int rows,
int columns)
Create a two-dimensional array, which is backed by some sparse implementation (rcs or hashing). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayFactory()
| Method Detail |
|---|
public IArrayD2Double create(Array a)
a -
public IArrayD2Double create(int rows,
int cols,
AnchorPairSet aps,
int neighborhood,
double band,
double default_value,
boolean globalBand)
rows - cols - aps - neighborhood - band - default_value - globalBand -
public IArrayD2Double create(int rows,
int cols,
double default_value)
rows - cols - default_value -
public IArrayD2Double create(int rows,
int cols,
double default_value,
Area bounds)
rows - cols - default_value - bounds -
public IArrayD2Double createCopiedLayout(IArrayD2Double ia)
ia - the array used as blueprint for layout
public BufferedImage createLayoutImage(IArrayD2Double ia)
public IArrayD2Double createSharedLayout(IArrayD2Double ia)
ia - the array used as blueprint for layout
public IArrayD2Double createSparseArray(int rows,
int columns)
rows - columns -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||