We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get decomposition coefficient with physical experiment without spectrum! Please integrate this!
def deDecompGetCoeff(lowProj: TwoOrThreeD, highProj: TwoOrThreeD, len1: TwoOrThreeD, len2: TwoOrThreeD) -> Tuple[NDArray, NDArray]: ''' Calculate the decomposing coefficient (Order 2 with bias term) of dual-energy onto two material length. ''' def deCalcBetaGamma(A1, A2, LComb): A1Square = A1.T**2 A2Square = A2.T**2 A1A2 = (A1 * A2).T A1 = A1.T A2 = A2.T Ones = np.ones((A1.T.shape[0])) A = np.array([A1Square, A2Square, A1A2, A1, A2, Ones]).T return np.linalg.pinv(A) @ LComb beta, gamma = deCalcBetaGamma(lowProj.flatten(), highProj.flatten(), np.array([len1.flatten(), len2.flatten()]).T).T return beta, gamma
The text was updated successfully, but these errors were encountered:
6
Sorry, something went wrong.
No branches or pull requests
Get decomposition coefficient with physical experiment without spectrum! Please integrate this!
The text was updated successfully, but these errors were encountered: