Ejemplo n.º 1
0
 private static double VolumeAbsorbAnalog(double weight, PhotonStateType photonStateType)
 {
     if (photonStateType.HasFlag(PhotonStateType.Absorbed))
     {
         weight = 1.0;
     }
     else
     {
         weight = 0.0;
     }
     return(weight);
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 private static double VolumeAbsorbContinuous(double mua, double mus, double previousWeight, double weight, PhotonStateType photonStateType, ITissue tissue, IDetector detector)
 {
     throw new NotImplementedException();
 }