gboolean analysis_tool_advanced_filter_engine (G_GNUC_UNUSED GOCmdContext *gcc, data_analysis_output_t *dao, gpointer specs, analysis_tool_engine_t selector, gpointer result) { analysis_tools_data_advanced_filter_t *info = specs; switch (selector) { case TOOL_ENGINE_UPDATE_DESCRIPTOR: return (dao_command_descriptor (dao, _("Advanced Filter (%s)"), result) == NULL); case TOOL_ENGINE_UPDATE_DAO: { int rows, cols; rows = info->base.range_1->v_range.cell.b.row - info->base.range_1->v_range.cell.a.row + 1; cols = info->base.range_1->v_range.cell.b.col - info->base.range_1->v_range.cell.a.col + 1; if (cols < 2) cols = 2; dao_adjust (dao, cols, 3 + rows); return FALSE; } case TOOL_ENGINE_CLEAN_UP: return analysis_tool_generic_b_clean (specs); case TOOL_ENGINE_LAST_VALIDITY_CHECK: return FALSE; case TOOL_ENGINE_PREPARE_OUTPUT_RANGE: dao_prepare_output (NULL, dao, _("Advanced Filter")); return FALSE; case TOOL_ENGINE_FORMAT_OUTPUT_RANGE: return dao_format_output (dao, _("Advanced Filter")); case TOOL_ENGINE_PERFORM_CALC: default: return analysis_tool_advanced_filter_engine_run (dao, info); } return TRUE; /* We shouldn't get here */ }
gboolean analysis_tool_wilcoxon_mann_whitney_engine (G_GNUC_UNUSED GOCmdContext *gcc, data_analysis_output_t *dao, gpointer specs, analysis_tool_engine_t selector, gpointer result) { switch (selector) { case TOOL_ENGINE_UPDATE_DESCRIPTOR: return (dao_command_descriptor (dao, _("Wilcoxon-Mann-Whitney Test (%s)"), result) == NULL); case TOOL_ENGINE_UPDATE_DAO: dao_adjust (dao, 4, 9); return FALSE; case TOOL_ENGINE_CLEAN_UP: return analysis_tool_generic_b_clean (specs); case TOOL_ENGINE_LAST_VALIDITY_CHECK: return FALSE; case TOOL_ENGINE_PREPARE_OUTPUT_RANGE: dao_prepare_output (NULL, dao, _("Wilcoxon-Mann-Whitney Test")); return FALSE; case TOOL_ENGINE_FORMAT_OUTPUT_RANGE: return dao_format_output (dao, _("Wilcoxon-Mann-Whitney Test")); case TOOL_ENGINE_PERFORM_CALC: default: return analysis_tool_wilcoxon_mann_whitney_engine_run (dao, specs); } return TRUE; /* We shouldn't get here */ }