Révision 3824

TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/messages/messages.properties (revision 3824)
4 4
axisP0P1Percent=Axis {0} ({1}%)
5 5
cantCreateBarChartOfTheCASingularValuesP0=** Can not create bar chart of the Correspondence analysis singular values.
6 6
cantCreateCAChartFileChartsEngineColonP0P1=** Can not create Correspondence analysis factorial plane chart file (charts engine {0})\: {1}
7
CantCreateCAFactorialMapScatterPlotP0=Can't create CA factorial map scatter plot : {0}
7 8
charts_singularValues_tooltipSum=∑
8 9
columns=Columns
9 10
common_c1=c1
......
20 21
correspondenceAnalysisFactorialMapofTheP0=Correspondence analysis factorial plane of {0}
21 22
eigenvalue=Eigenvalue
22 23
eigenvalues=Eigenvalues
24
eigenvaluesP0=Eigenvalues {0}
23 25
error_canNotLoadCALibraryP0=** Can not load the ''ca'' library\: {0}.
24 26
error_errorWhileComputingCAP0=** Error while computing correspondence analysis\: {0}.
25 27
error_failedToGetConstributionRowP0=** Failed to access contribution row\: {0}.
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/messages/CACoreMessages.java (revision 3824)
17 17
	public static String RESULT_TYPE;
18 18
	
19 19
	public static String eigenvalues;
20

  
21
	public static String eigenvaluesP0;
20 22
	
21 23
	public static String cantCreateCAChartFileChartsEngineColonP0P1;
22 24
	
......
25 27
	public static String axis;
26 28
	
27 29
	public static String axisP0P1Percent;
30

  
31
	public static String CantCreateCAFactorialMapScatterPlotP0;
28 32
	
29 33
	public static String columns;
30 34
	
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/functions/Eigenvalues.java (revision 3824)
56 56
	@Override
57 57
	public String getName() {
58 58
		// TODO Auto-generated method stub
59
		return "";
59
		return ""; //$NON-NLS-1$
60 60
	}
61 61
	
62 62
	@Override
63 63
	public String getSimpleName() {
64
		return "Eigenvalues " + this.getCA().getUnitProperty();
64
		return CACoreMessages.eigenvaluesP0 + this.getCA().getUnitProperty();
65 65
	}
66 66
	
67 67
	@Override
68 68
	public String getDetails() {
69 69
		// TODO Auto-generated method stub
70
		return "";
70
		return ""; //$NON-NLS-1$
71 71
	}
72 72
	
73 73
	@Override
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/chartsengine/r/RCAChartCreator.java (revision 3824)
61 61
			
62 62
			String axes = "c(" + firstDimension + ", " + secondDimension + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
63 63
			
64
			String cmd = "plot.CA(" + ca.getSymbol() + ", label=" + label + ", invisible=" + invisible + ", axes=" + axes + ", title=\"" + title + "\", cex=.8)"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
64
			String cmd = "plot.CA(" + ca.getSymbol() + ", label=" + label + ", invisible=" + invisible + ", axes=" + axes + ", title=\"" + title + "\", cex=.8)"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$
65 65
			
66 66
			this.getChartsEngine().plot(destFile, cmd);
67 67
			
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/chartsengine/r/REigenvaluesChartCreator.java (revision 3824)
53 53
		xLabels.append("c("); //$NON-NLS-1$
54 54
		REXP sv;
55 55
		try {
56
			sv = RWorkspace.getRWorkspaceInstance().eval("length(" + ca.getSymbol() + "$eig[,1])");  //$NON-NLS-1$ $NON-NLS-2$
56
			sv = RWorkspace.getRWorkspaceInstance().eval("length(" + ca.getSymbol() + "$eig[,1])");  //$NON-NLS-1$ //$NON-NLS-2$ $NON-NLS-2$
57 57
			int ncol = sv.asInteger();
58 58
			
59 59
			for (int i = 0, c = ncol; i < c; i++) {
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/chartcreators/JFCCAChartCreator.java (revision 3824)
48 48
			// CAXYDataset dataset = new CAXYDataset(ca);
49 49
			
50 50
			chart = ChartFactory.createScatterPlot(Utils.createCAFactorialMapChartTitle(ca),
51
					"", "", null, PlotOrientation.VERTICAL,
51
					"", "", null, PlotOrientation.VERTICAL, //$NON-NLS-1$ //$NON-NLS-2$
52 52
					CAPreferences.getInstance().getBoolean(ChartsEnginePreferences.SHOW_LEGEND), false, false);
53 53
			
54 54
			// Custom renderer
55 55
			chart.getXYPlot().setRenderer(new CAItemSelectionRenderer(ca, chart));
56 56
		}
57 57
		catch (Exception e) {
58
			Log.severe("Can't create CA factorial map scatter plot" + e);
58
			Log.severe(CACoreMessages.CantCreateCAFactorialMapScatterPlotP0 + e);
59 59
			return null;
60 60
		}
61 61
		
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/preferences/CAPreferences.java (revision 3824)
40 40
	public static final String SHOW_INDIVIDUALS = "chart_show_individuals"; //$NON-NLS-1$
41 41
	public static final String SHOW_VARIABLES = "chart_show_variables"; //$NON-NLS-1$
42 42
	public static final String SHOW_POINT_SHAPES = "chart_show_point_shapes"; //$NON-NLS-1$
43
	public static final String ROW_SUP_NAMES = "row_sup_names";
44
	public static final String COL_SUP_NAMES = "col_sup_names";
43
	public static final String ROW_SUP_NAMES = "row_sup_names"; //$NON-NLS-1$
44
	public static final String COL_SUP_NAMES = "col_sup_names"; //$NON-NLS-1$
45 45
	
46 46
	
47 47
	/**
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/statsengine/r/functions/FactoMineRCA.java (revision 3824)
138 138
			// rw.callFunctionAndAffect("FactoMineR:CA", new String[] { table.getSymbol() }, symbol); //$NON-NLS-1$
139 139
			// rw.eval(symbol+" <- FactoMineR::CA("+table.getSymbol()+", graph=FALSE)"); //$NON-NLS-1$ //$NON-NLS-2$
140 140
			StringBuilder script = new StringBuilder();
141
			script.append(symbol + " <- FactoMineR::CA(" + table.getSymbol() + "[,colSums(" + table.getSymbol() + ") != 0]");
141
			script.append(symbol + " <- FactoMineR::CA(" + table.getSymbol() + "[,colSums(" + table.getSymbol() + ") != 0]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
142 142
			if (pRowSupNames != null && pRowSupNames.length() > 0) {
143
				String[] split = pRowSupNames.split(",");
143
				String[] split = pRowSupNames.split(","); //$NON-NLS-1$
144 144
				for (int i = 0 ; i < split.length ; i++) {
145
					split[i] = split[i].replace("\"", "\\\"");
145
					split[i] = split[i].replace("\"", "\\\""); //$NON-NLS-1$ //$NON-NLS-2$
146 146
				}
147
				script.append(",row.sup=Filter(Negate(is.null), which(rownames("+table.getSymbol()+") == c(\""+StringUtils.join(split, "\", \"")+"\")))");
147
				script.append(",row.sup=Filter(Negate(is.null), which(rownames("+table.getSymbol()+") == c(\""+StringUtils.join(split, "\", \"")+"\")))"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
148 148
				 //which(rownames(children) == c("money", "fear"))
149 149
			}
150 150
			if (pColSupNames != null && pColSupNames.length() > 0) {
151
				String[] split = pColSupNames.split(",");
151
				String[] split = pColSupNames.split(","); //$NON-NLS-1$
152 152
				for (int i = 0 ; i < split.length ; i++) {
153
					split[i] = split[i].replace("\"", "\\\"");
153
					split[i] = split[i].replace("\"", "\\\""); //$NON-NLS-1$ //$NON-NLS-2$
154 154
				}
155
				script.append(",col.sup=Filter(Negate(is.null), which(colnames("+table.getSymbol()+") == c(\""+StringUtils.join(split, "\", \"")+"\")))");
155
				script.append(",col.sup=Filter(Negate(is.null), which(colnames("+table.getSymbol()+") == c(\""+StringUtils.join(split, "\", \"")+"\")))"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
156 156
			}
157
			script.append(", graph=FALSE)");
157
			script.append(", graph=FALSE)"); //$NON-NLS-1$
158 158
			rw.eval(script.toString()); //$NON-NLS-1$ //$NON-NLS-2$
159 159
			
160 160
		}
......
519 519
	 */
520 520
	@Override
521 521
	public String getEigenvaluesRSymbol() throws StatException {
522
		return symbol + "$eig[,1]";
522
		return symbol + "$eig[,1]"; //$NON-NLS-1$
523 523
	}
524 524
	
525 525
	/*
......
585 585
	
586 586
	@Override
587 587
	public int getRowsCount() throws RWorkspaceException, REXPMismatchException {
588
		return rw.eval("length(" + this.symbol + "$call$marge.row)").asInteger();
588
		return rw.eval("length(" + this.symbol + "$call$marge.row)").asInteger(); //$NON-NLS-1$ //$NON-NLS-2$
589 589
	}
590 590
	
591 591
	@Override
592 592
	public int getColumnsCount() throws RWorkspaceException, REXPMismatchException {
593
		return rw.eval("length(" + this.symbol + "$call$marge.col)").asInteger();
593
		return rw.eval("length(" + this.symbol + "$call$marge.col)").asInteger(); //$NON-NLS-1$ //$NON-NLS-2$
594 594
	}
595 595
	
596 596
	@Override
597 597
	public Vector getColNames() throws RWorkspaceException {
598
		return new VectorImpl("names(" + this.symbol + "$call$marge.col)");
598
		return new VectorImpl("names(" + this.symbol + "$call$marge.col)"); //$NON-NLS-1$ //$NON-NLS-2$
599 599
	}
600 600
	
601 601
	@Override
602 602
	public Vector getRowNames() throws RWorkspaceException {
603
		return new VectorImpl("names(" + this.symbol + "$call$marge.row)");
603
		return new VectorImpl("names(" + this.symbol + "$call$marge.row)"); //$NON-NLS-1$ //$NON-NLS-2$
604 604
	}
605 605
}
TXM/trunk/bundles/org.txm.ca.core/src/org/txm/ca/core/statsengine/r/functions/CA.java (revision 3824)
453 453
	
454 454
	@Override
455 455
	public String getEigenvaluesRSymbol() throws StatException {
456
		return symbol + "$sv";
456
		return symbol + "$sv"; //$NON-NLS-1$
457 457
	}
458 458
	
459 459
	/*

Formats disponibles : Unified diff