Changeset 5468 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 02/15/11 14:31:44 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Formatters/SymbolicExpressionTreeLatexFormatter.cs
r5445 r5468 170 170 var laggedTreeNode = node as ILaggedTreeNode; 171 171 strBuilder.Append(@"\sum_{t=" + (laggedTreeNode.Lag + currentLag) + @"}^0 \left("); 172 } else if (node.Symbol is VariableCondition) { 173 var conditionTreeNode = node as VariableConditionTreeNode; 174 string p = @"1 / \left( 1 + \exp \left( - c_{" + constants.Count + "} "; 175 constants.Add(conditionTreeNode.Slope); 176 p += @" \cdot \left(" + conditionTreeNode.VariableName + LagToString(currentLag) + " - c_{" + constants.Count + "} \right) \right) \right)"; 177 constants.Add(conditionTreeNode.Threshold); 178 strBuilder.Append(@"\left( " + p + @"\cdot "); 172 179 } else { 173 180 throw new NotImplementedException("Export of " + node.Symbol + " is not implemented."); … … 219 226 } else if (node.Symbol is Root) { 220 227 strBuilder.Append(@"\right) ^ { \left( \cfrac{1}{ \operatorname{round} \left("); 228 } else if (node.Symbol is VariableCondition) { 229 var conditionTreeNode = node as VariableConditionTreeNode; 230 string p = @"1 / \left( 1 + \exp \left( - c_{" + constants.Count + "} "; 231 constants.Add(conditionTreeNode.Slope); 232 p += @" \cdot \left(" + conditionTreeNode.VariableName + LagToString(currentLag) + " - c_{" + constants.Count + "} \right) \right) \right)"; 233 constants.Add(conditionTreeNode.Threshold); 234 strBuilder.Append(@" + \left( 1 - " + p + @" \right) \cdot "); 221 235 } else { 222 236 throw new NotImplementedException("Export of " + node.Symbol + " is not implemented."); … … 291 305 var laggedTreeNode = node as ILaggedTreeNode; 292 306 strBuilder.Append(@"\right) "); 307 } else if (node.Symbol is VariableCondition) { 308 strBuilder.Append(@"\left) "); 293 309 } else { 294 310 throw new NotImplementedException("Export of " + node.Symbol + " is not implemented.");
Note: See TracChangeset
for help on using the changeset viewer.