MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / OnSigFilterSetup

Method OnSigFilterSetup

Explore/AbstractClusterMap.cpp:642–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void AbstractMapFrame::OnSigFilterSetup(wxCommandEvent& event)
643{
644 AbstractMapCanvas* lc = (AbstractMapCanvas*)template_canvas;
645 int t = template_canvas->cat_data.GetCurrentCanvasTmStep();
646 double* p = a_coord->GetLocalSignificanceValues(t);
647 int n = a_coord->num_obs;
648 wxString ttl = _("Inference Settings (%d perm)");
649 ttl = wxString::Format(ttl, a_coord->GetNumPermutations());
650
651 double user_sig = a_coord->GetSignificanceCutoff();
652 int sig_filter = a_coord->GetSignificanceFilter();
653 if (sig_filter < 0) user_sig = a_coord->GetUserCutoff();
654
655 InferenceSettingsDlg dlg(this, user_sig, p, n, ttl);
656 if (dlg.ShowModal() == wxID_OK) {
657 a_coord->SetSignificanceFilter(-1);
658 a_coord->SetSignificanceCutoff(dlg.GetAlphaLevel());
659 a_coord->SetUserCutoff(dlg.GetUserInput());
660
661 a_coord->notifyObservers();
662
663 a_coord->SetBO(dlg.GetBO());
664 a_coord->SetFDR(dlg.GetFDR());
665 UpdateOptionMenuItems();
666 }
667}
668
669void AbstractMapFrame::CoreSelectHelper(const std::vector<bool>& elem)
670{

Callers

nothing calls this directly

Calls 14

GetNumPermutationsMethod · 0.80
GetSignificanceCutoffMethod · 0.80
GetUserCutoffMethod · 0.80
SetSignificanceCutoffMethod · 0.80
SetUserCutoffMethod · 0.80
SetBOMethod · 0.80
GetBOMethod · 0.80
SetFDRMethod · 0.80
GetFDRMethod · 0.80
GetSignificanceFilterMethod · 0.45

Tested by

no test coverage detected