You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reuse HistogramPanel inside a new FxViewBuilder. No need to change HistogramPanel itself too much. Unless you need to set new things. But there is the HistgramPanel.setData method taking a HistogramData instance. Maybe you need to find out how to set the x-axis label (JFreeChart names it DomainAxis)
Extract all Feature data types from a feature list
Have user select one data type by ComboBox and then update the HinstogramData
FeatureListlist = ...;
// this list would go into an ObservableList<NumberType> and be set as items in a combobox - maybe sorted by header nameList<NumberType> types = list.getFeatureTypes().stream().filter(dt -> dtinstanceofNumberType<?>).map(dt -> (NumberType)dt).toList();
// This selected type would be in model.selectedTypeProperty() and // be bound to the comboBox.getSelectionModel().selectedItemProperty()NumberTypeselectedType = types.getFirst();
double[] data = list.streamFeatures().map(f -> extractDouble(f, selectedType)).filter(Objects::nonNull).mapToDouble(Double::doubleValue).toArray();
privatestaticDoubleextractDouble(finalModularFeaturef, finalNumberTypeselectedType) {
Objecto = f.get(selectedType);
if(oinstanceofNumbernum) {
try {
returnnum.doubleValue();
} catch (Exceptionex) {
returnnull;
}
}
returnnull;
}
Introduce new feature histogram able to pick up numeric data types across all the features in selected feature list.
The text was updated successfully, but these errors were encountered: