Class QueryNearest
java.lang.Object
ghidra.features.bsim.query.protocol.BSimQuery<ResponseNearest>
ghidra.features.bsim.query.protocol.QueryNearest
Query nearest matches within database to a set of functions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default value for the maximum number of similar functions to return for a given input functionstatic final double
The default value for the significance threshold.static final double
The default value for the similarity threshold.boolean
int
double
double
int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
restoreXml
(XmlPullParser parser, LSHVectorFactory vectorFactory) void
Methods inherited from class ghidra.features.bsim.query.protocol.BSimQuery
clearResponse, execute, getName, getResponse, restoreQuery
-
Field Details
-
DEFAULT_SIMILARITY_THRESHOLD
public static final double DEFAULT_SIMILARITY_THRESHOLDThe default value for the similarity threshold. This threshold is for how similar the potential function is. This is a value from 0.0 to 1.0.- See Also:
-
DEFAULT_SIGNIFICANCE_THRESHOLD
public static final double DEFAULT_SIGNIFICANCE_THRESHOLDThe default value for the significance threshold. This threshold is for how significant the match is (for example, smaller function matches are less significant). Higher is more significant. There is no upper bound.- See Also:
-
DEFAULT_MAX_MATCHES
public static final int DEFAULT_MAX_MATCHESThe default value for the maximum number of similar functions to return for a given input function- See Also:
-
manage
-
nearresponse
-
thresh
public double thresh -
signifthresh
public double signifthresh -
max
public int max -
vectormax
public int vectormax -
fillinCategories
public boolean fillinCategories -
bsimFilter
-
-
Constructor Details
-
QueryNearest
public QueryNearest()
-
-
Method Details
-
buildResponseTemplate
public void buildResponseTemplate()- Overrides:
buildResponseTemplate
in classBSimQuery<ResponseNearest>
-
getDescriptionManager
- Overrides:
getDescriptionManager
in classBSimQuery<ResponseNearest>
-
getLocalStagingCopy
- Overrides:
getLocalStagingCopy
in classBSimQuery<ResponseNearest>
- Returns:
- a partial clone of this query suitable for holding local stages of the query via StagingManager
-
saveXml
- Specified by:
saveXml
in classBSimQuery<ResponseNearest>
- Throws:
IOException
-
restoreXml
- Specified by:
restoreXml
in classBSimQuery<ResponseNearest>
- Throws:
LSHException
-