private static double VolumeAbsorbAnalog(double weight, PhotonStateType photonStateType) { if (photonStateType.HasFlag(PhotonStateType.Absorbed)) { weight = 1.0; } else { weight = 0.0; } return(weight); }
/// <summary> /// Photon information updated during its trajectory through tissue /// </summary> /// <param name="position">Position</param> /// <param name="direction">Direction</param> /// <param name="weight">weight</param> /// <param name="totalTime">total time of flight</param> /// <param name="stateFlag">PhotonStateType</param> public PhotonDataPoint( Position position, Direction direction, double weight, double totalTime, PhotonStateType stateFlag) { _Position = position; _Direction = direction; _Weight = weight; _TotalTime = totalTime; _StateFlag = stateFlag; }
private static double VolumeAbsorbContinuous(double mua, double mus, double previousWeight, double weight, PhotonStateType photonStateType, ITissue tissue, IDetector detector) { throw new NotImplementedException(); }