The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Marco Boeck wrote:Hi,please be more specific. I have absolutely no clue what you want to achieve.But for starters, I'll just post a link that might be interesting to you ...Regards,Marco
MemoryExampleTable table = new MemoryExampleTable(copiedListOfAttributes);double[] doubleArray = null;[...]for (int j=0; j<copiedListOfAttributes.size(); j++) { Attribute a = copiedListOfAttributes.get(j); value = rowList.get(j); // if numerical attribute if (a.isNumerical()) { // put it into the array if (value == null) { doubleArray = Double.NaN; } else { doubleArray = Double.parseDouble(value); } // non-numerical attribute } else { // special case: date attribute if (Ontology.ATTRIBUTE_VALUE_TYPE.isA(a.getValueType(), Ontology.DATE ) || Ontology.ATTRIBUTE_VALUE_TYPE.isA(a.getValueType(), Ontology.DATE_TIME) || Ontology.ATTRIBUTE_VALUE_TYPE.isA(a.getValueType(), Ontology.TIME)) { if (value == null) { doubleArray = Double.NaN; } else { doubleArray = Double.parseDouble(value); } } else { // create a new mapping (cleared earlier) if needed, add resulting index to array if (value == null) { doubleArray = Double.NaN; } else { doubleArray = a.getMapping().mapString(rowList.get(j)); } } }}[...]// add the double array for each row to the ExampleSettable.addDataRow(new DoubleArrayDataRow(doubleArray));// create example setExampleSet exSet = table.createExampleSet();
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…
Join us for a community conversation to explore how different modeling approaches in Simcenter PSIM can help engineers simulate power electronics systems while balancing accuracy, simulation speed, and design insight. What you'll learn: Power transistor modeling : Thermal and high fidelity models Protection component…