Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Latest commit

 

History

History
112 lines (73 loc) · 2.51 KB

File metadata and controls

112 lines (73 loc) · 2.51 KB

TransfunctionCoda

TransfunctionCoda function is used to rearrange input value. Created by subsystems developer Coda.

Python

Location and name: Funcad.Funcad.transfunc_coda()

Inputs:

  • float value to remake
  • list input array
  • list output array

Output:

float remaded input

Example:

from robocadSimPy import Funcad


funcad = Funcad.Funcad()
out = funcad.transfunc_coda(5, [2, 10], [20, 100])  # out will be 50

Additional info:

---

C++

Location and name: "Funcad.h".Funcad.transfunc_coda()

Inputs:

  • float value to remake
  • float* input array
  • float* output array
  • int size of input or output array

Output:

float remaded input

Example:

Additional info:

---

C#

Location and name: RobocadSim.Funcad.TransfunctionCoda()

Inputs:

  • float value to remake
  • List<float> input array
  • List<float> output array

Output:

float remaded input

Example:

using System;
using RobocadSim;

namespace TestLib
{
    class Program
    {
        static void Main(string[] args)
        {
            Funcad funcad = new Funcad();
            float[] inArr = { 2, 10 };
            List<float> inList = new List<float>(inArr);
            float[] outArr = { 20, 100 };
            List<float> outList = new List<float>(outArr);
            float outVal = funcad.TransfunctionCoda(5, inList, outList); // out will be 50
        }
    }
}

Additional info:

---