public class MatrixProxy extends AbstractMatrixND
MatrixProvider to fill matrix value.
This is usefull for huge matrix that need to not be filled at first
use, but after some dimensions reductions.MatrixProvider,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected MatrixProvider |
matrixProvider |
CSV_SEPARATOR, defaultValue, dim, dimHelper, dimNames, factory, name, NUMBER, semantics| Modifier | Constructor and Description |
|---|---|
protected |
MatrixProxy(MatrixFactory factory,
int[] dim) |
protected |
MatrixProxy(MatrixFactory factory,
List<?>[] semantics) |
protected |
MatrixProxy(MatrixFactory factory,
String name,
int[] dim) |
protected |
MatrixProxy(MatrixFactory factory,
String name,
int[] dim,
String[] dimNames) |
protected |
MatrixProxy(MatrixFactory factory,
String name,
List<?>[] semantics) |
protected |
MatrixProxy(MatrixFactory factory,
String name,
List<?>[] semantics,
String[] dimNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(MatrixND mat) |
MatrixProvider |
getMatrixProvider() |
int |
getNumberOfAssignedValue()
Returne number of assigned value, assigned value is value stored in memory
|
MatrixND |
getSubMatrix(int[]... elems)
Permet de prendre une sous matrice dans la matrice courante.
|
MatrixND |
getSubMatrix(int dim,
int[] elem)
Permet de prendre une sous matrice dans la matrice courante.
|
MatrixND |
getSubMatrix(int dim,
int start,
int nb)
Permet de prendre une sous matrice dans la matrice courante.
|
MatrixND |
getSubMatrix(int dim,
Object... elem)
Permet de prendre une sous matrice dans la matrice courante.
|
MatrixND |
getSubMatrix(Object[]... elems)
Permet de prendre une sous matrice dans la matrice courante.
|
double |
getValue(int[] coordinates)
Renvoie un element de la matrice demandée en fonction des dimensions
passé en paramètre.
Exemple: Si on a un matrice 3D. getValue(1,1,1) retourne un element de la matrice. |
MatrixIterator |
iterator()
Retourne un iterator sur toute la matrice.
|
MatrixIterator |
iteratorNotZero()
Retourne un iterator pour toutes les valeurs de la matrices differente
de 0
|
void |
setMatrixProvider(MatrixProvider matrixProvider) |
void |
setValue(int[] coordinates,
double d)
Modifie un element de la matrice en fonction des dimensions passé en
paramètre.
Exemple: Si on a un matrice 3D. set([1,1,1], m) modifie un element de la matrice. |
add, adds, clone, copy, cut, divs, equals, equalsValues, exportCSV, exportCSV2D, exportCSVND, fromList, getDim, getDim, getDimCount, getDimensionName, getDimensionName, getDimensionNames, getFactory, getMaxOccurence, getMaxOccurrence, getName, getNbDim, getSemantic, getSemantics, getSemantics, getSubMatrix, getSubMatrixOnSemantic, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, importCSV, importCSV, importCSV, importCSVND, importCSVNDReadDimension, init, isSupportedCSV, isValidCoordinates, isValidCoordinates, map, meanAll, meanOverDim, meanOverDim, minus, minuss, mult, mults, paste, paste, pasteSemantics, reduce, reduce, reduce, reduceDims, setDimensionName, setDimensionName, setDimensionNames, setName, setSemantic, setSemantics, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, size, sumAll, sumOverDim, sumOverDim, sumOverDim, toList, toString, transposeprotected MatrixProvider matrixProvider
protected MatrixProxy(MatrixFactory factory, int[] dim)
protected MatrixProxy(MatrixFactory factory, List<?>[] semantics)
protected MatrixProxy(MatrixFactory factory, String name, int[] dim)
protected MatrixProxy(MatrixFactory factory, String name, int[] dim, String[] dimNames)
protected MatrixProxy(MatrixFactory factory, String name, List<?>[] semantics)
protected MatrixProxy(MatrixFactory factory, String name, List<?>[] semantics, String[] dimNames)
public int getNumberOfAssignedValue()
MatrixNDpublic MatrixProvider getMatrixProvider()
public void setMatrixProvider(MatrixProvider matrixProvider)
public MatrixIterator iterator()
MatrixNDpublic MatrixIterator iteratorNotZero()
MatrixNDpublic double getValue(int[] coordinates)
MatrixNDcoordinates - les différentes dimension à extraire. Le tableau doit
contenir toutes les dimensions de la matrice, et seulement des
nombres positifpublic void setValue(int[] coordinates,
double d)
MatrixNDcoordinates - dimension indicesd - new double value to set into matrix at specified dimensionspublic MatrixND getSubMatrix(int dim, int start, int nb)
MatrixNDgetSubMatrix in interface MatrixNDgetSubMatrix in class AbstractMatrixNDdim - la dimension dans lequel on veut une sous matricestart - la position dans dim d'ou il faut partir pour prendre la
sous matrice. 0 <= start < dim.size si start est négatif alors
la position de départ est calculé par rapport à la fin de la
dimension, pour avoir le dernier élément il faut passer -1nb - le nombre d'élément à prendre dans la dimension si nb est
inférieur ou égal à 0 alors cela indique qu'il faut prendre
tous les éléments jusqu'à la fin de la dimension.public MatrixND getSubMatrix(int dim, Object... elem)
MatrixNDgetSubMatrix in interface MatrixNDgetSubMatrix in class AbstractMatrixNDdim - la dimension dans lequel on veut une sous matriceelem - les éléments dans la dimension à conserverpublic MatrixND getSubMatrix(Object[]... elems)
MatrixNDMatrixND.getSubMatrix(int, Object...) suivant
l'implémentation.getSubMatrix in interface MatrixNDgetSubMatrix in class AbstractMatrixNDelems - les éléments dans la dimension à conserverpublic MatrixND getSubMatrix(int dim, int[] elem)
MatrixNDgetSubMatrix in interface MatrixNDgetSubMatrix in class AbstractMatrixNDdim - la dimension dans lequel on veut une sous matriceelem - les indices des éléments dans la dimension à conserverpublic MatrixND getSubMatrix(int[]... elems)
MatrixNDMatrixND.getSubMatrix(int, int[]) suivant
l'implementation.getSubMatrix in interface MatrixNDgetSubMatrix in class AbstractMatrixNDelems - les indices des éléments pour chaque dimension à conserverpublic boolean equals(MatrixND mat)
equals in class AbstractMatrixNDCopyright © 2004–2015 CodeLutin. All rights reserved.