Package fr.soleil.data.container.matrix

Examples of fr.soleil.data.container.matrix.DoubleMatrix


  private boolean isWrite = false;


  public DoubleImageRandomDataSource() {
        super(null);
    matrice = new DoubleMatrix();
    matrice.setName("Random Image");
    Thread thread = new Thread(){
      @Override
      public void run(){
        while (!isWrite) {
View Full Code Here


                }
            }
        }

        try {
            AbstractNumberMatrix<?> matrix = new DoubleMatrix();
            int[] shape = data.getShape();
            if (shape.length == 2) {
                matrix.setFlatValue(finalData, shape[0], shape[1]);
            }
            table.setData(matrix);

            // viewer.setAnnotation(IChartViewer.TIME_ANNO, IChartViewer.Y1);
            Map<String, Object> dataToChart = new HashMap<String, Object>();
View Full Code Here

            Data doubleMatrixData = input;

            Object inputVal = input.getValue();
            if (inputVal instanceof DoubleMatrix) {
                DoubleMatrix inputValMatrix = (DoubleMatrix) inputVal;

                scalarVal = inputValMatrix.getValueAt(120, 115);

                double[][] doubleMatrix = (double[][]) ((DoubleMatrix) inputVal).getValue();

                double[] arrayValue = doubleMatrix[120];
                double[] result = new double[arrayValue.length];
View Full Code Here

                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if ((doubleValues != null) && (x < dimX) && (y < dimY)) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                } catch (DevFailed e) {
                    e.printStackTrace();
                } catch (UnsupportedDataTypeException e) {
                    e.printStackTrace();
View Full Code Here

                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                }
View Full Code Here

                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                }
View Full Code Here

                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
                    doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if ((doubleValues != null) && (x < dimX) && (y < dimY)) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot read " + scanServerDeviceName + "/" + attributeName + " "
                            + DevFailedUtils.toString(e));
                } catch (UnsupportedDataTypeException e) {
View Full Code Here

                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                }
View Full Code Here

                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if ((doubleValues != null) && (x < dimX) && (y < dimY)) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                } catch (DevFailed e) {
                    e.printStackTrace();
                } catch (UnsupportedDataTypeException e) {
                    e.printStackTrace();
View Full Code Here

                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                }
View Full Code Here

TOP

Related Classes of fr.soleil.data.container.matrix.DoubleMatrix

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.