Пример #1
0
 IEnumerator LogManipulationUntilDone()
 {
     while (currentlyManipulating)
     {
         loggingManager.UpdateLogColumn(ManipulationLoggingManager.GetColName(), gameObject.TryGetNiceNameOfObjectForLogging());
         yield return(null);
     }
     CurAction = "";
 }
Пример #2
0
        private void UpdateCuriosity(int len)
        {
            while (GetInforSeekingActionQueue().Count > len)
            {
                curiosity_t -= infoSeekingActionQueue.Dequeue();
            }
            int result = 0;

            if (LoggingManager.instance.GetValueInRowAt(ManipulationLoggingManager.GetColName()) != "")
            {
                result = 1;
            }
            else if (LoggingManager.instance.GetValueInRowAt(SnapLoggingManager.GetSnapToColName()) != "")
            {
                result = 1;
            }
            else if (LoggingManager.instance.GetValueInRowAt(SnapLoggingManager.GetSnapRemoveFromColName()) != "")
            {
                result = 1;
            }
            curiosity_t += result;

            float et = curiosity_t - curiosity_average;

            curiosity_average += et / totalTimeSteps;
            curiosity_SSE     += et * (curiosity_t - curiosity_average);

            infoSeekingActionQueue.Enqueue(result);


            LoggingManager.instance.UpdateLogColumn(humanCurtCol, curiosity_t.ToString("F3"));
            float zCur = GetZScoreCuriosity();

            if (!float.IsInfinity(zCur) && !float.IsNaN(zCur))
            {
                LoggingManager.instance.UpdateLogColumn(humanCurZScore, zCur.ToString("F3"));
            }
        }
Пример #3
0
 private void LogManipulationStart(ManipulationEventData arg0)
 {
     LoggingManager.instance.UpdateLogColumn(ManipulationLoggingManager.GetColName(), gameObject.TryGetNiceNameOfObjectForLogging());
 }
Пример #4
0
 private void LogManipulationStartButtonPress()
 {
     LoggingManager.instance.UpdateLogColumn(ManipulationLoggingManager.GetColName(), gameObject.TryGetNiceNameOfObjectForLogging());
 }