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:
---