Skip to content

score_and_assign

score_and_assign(ubi, gv, tol, drlv2, labels, label)

Categories: Indexing, Scattering geometry

Description

is similar to score but it assigns peaks to this ubi only if they fit the data better than the current UBI. It updates drlv2 and labels to use best fitting grain for each peak. ... perhaps this is not what you want for overlapping peaks in twins!

Parameters

Name Description
drlv2 Input/output array (ng). Current best squared residuals per peak.
gv G-vectors array, shape (ng, 3) flattened.
label Grain label assigned to peaks that match this UBI.
labels Input/output array (ng). Current grain labels per peak.
tol Matching tolerance.
ubi Orientation matrix (9-element flattened double).

Constraints

  • ubi.format == 'd'
  • ubi.n == 9
  • gv.format == 'd'
  • drlv2.format == 'd'
  • drlv2.n == gv.shape[0]
  • ( labels.format == 'i' or labels.format == 'l' )
  • labels.n == gv.shape[0]

Overloads

C function Condition
score_and_assign f64

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)