本文整理汇总了C#中Altaxo.Data.DoubleColumn类的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.Data.DoubleColumn类的具体用法?C# Altaxo.Data.DoubleColumn怎么用?C# Altaxo.Data.DoubleColumn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Altaxo.Data.DoubleColumn类属于命名空间,在下文中一共展示了Altaxo.Data.DoubleColumn类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Max
public static Altaxo.Data.DoubleColumn Max(Altaxo.Data.DoubleColumn c1, Altaxo.Data.DoubleColumn c2)
{
int len = c1.m_Count<c2.m_Count ? c1.m_Count : c2.m_Count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for(int i=0;i<len;i++)
{
c3.m_Array[i] = System.Math.Max(c1.m_Array[i],c2.m_Array[i]);
}
c3.m_Count=len;
return c3;
}
示例2:
public static Altaxo.Data.DoubleColumn operator %(double c2, Altaxo.Data.DoubleColumn c1)
{
int len = c1._count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3._data[i] = c2 % c1._data[i];
}
c3._count = len;
return c3;
}
示例3: EhView_CopyParameterNVV
public void EhView_CopyParameterNVV()
{
System.Windows.Forms.DataObject dao = new System.Windows.Forms.DataObject();
Altaxo.Data.TextColumn txt = new Altaxo.Data.TextColumn();
Altaxo.Data.DoubleColumn col = new Altaxo.Data.DoubleColumn();
Altaxo.Data.DoubleColumn var = new Altaxo.Data.DoubleColumn();
for (int i = 0; i < _doc.CurrentParameters.Count; i++)
{
txt[i] = _doc.CurrentParameters[i].Name;
col[i] = _doc.CurrentParameters[i].Parameter;
var[i] = _doc.CurrentParameters[i].Variance;
}
Altaxo.Data.DataTable tb = new Altaxo.Data.DataTable();
tb.DataColumns.Add(txt, "Name", Altaxo.Data.ColumnKind.V, 0);
tb.DataColumns.Add(col, "Value", Altaxo.Data.ColumnKind.V, 0);
tb.DataColumns.Add(var, "Variance", Altaxo.Data.ColumnKind.V, 0);
Altaxo.Worksheet.Commands.EditCommands.WriteAsciiToClipBoardIfDataCellsSelected(
tb, new Altaxo.Collections.AscendingIntegerCollection(),
new Altaxo.Collections.AscendingIntegerCollection(),
new Altaxo.Collections.AscendingIntegerCollection(),
dao);
System.Windows.Forms.Clipboard.SetDataObject(dao, true);
}
示例4: Map
public static Altaxo.Data.DoubleColumn Map(Func<double, double, double> function, double c1, Altaxo.Data.DoubleColumn c2)
{
int len = c2._count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3._data[i] = function(c1, c2._data[i]);
}
c3._count = len;
return c3;
}
示例5: Pow9
public static Altaxo.Data.DoubleColumn Pow9(Altaxo.Data.DoubleColumn c1)
{
int len = c1._count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3._data[i] = Altaxo.Calc.RMath.Pow9(c1._data[i]);
}
c3._count = len;
return c3;
}
示例6: Round
public static Altaxo.Data.DoubleColumn Round(double c1, Altaxo.Data.DoubleColumn c2)
{
int len = c2._count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3._data[i] = System.Math.Round(c1, (int)c2._data[i]);
}
c3._count = len;
return c3;
}
示例7:
public static Altaxo.Data.DoubleColumn operator %(Altaxo.Data.DoubleColumn c1, double c2)
{
int len = c1.m_Count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for(int i=0;i<len;i++)
{
c3.m_Array[i] = c1.m_Array[i] % c2;
}
c3.m_Count=len;
return c3;
}
示例8: Subtraction
public static Altaxo.Data.DoubleColumn Subtraction(Altaxo.Data.DateTimeColumn c1, DateTime c2)
{
int len = c1.Count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3.m_Array[i] = (c1.GetValueDirect(i) - c2).TotalSeconds;
}
c3.m_Count = len;
return c3;
}
示例9: Sqrt
public static Altaxo.Data.DoubleColumn Sqrt(Altaxo.Data.DoubleColumn c1)
{
int len=c1.m_Count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for(int i=0;i<len;i++)
{
c3.m_Array[i] = System.Math.Sqrt(c1.m_Array[i]);
}
c3.m_Count=len;
return c3;
}
示例10: Round
public static Altaxo.Data.DoubleColumn Round(Altaxo.Data.DoubleColumn c1, int c2)
{
int len = c1.m_Count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for(int i=0;i<len;i++)
{
c3.m_Array[i] = System.Math.Round(c1.m_Array[i],c2);
}
c3.m_Count=len;
return c3;
}
示例11: Pow
public static Altaxo.Data.DoubleColumn Pow(double c1, Altaxo.Data.DoubleColumn c2)
{
int len = c2.m_Count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for(int i=0;i<len;i++)
{
c3.m_Array[i] = System.Math.Pow(c1,c2.m_Array[i]);
}
c3.m_Count=len;
return c3;
}
示例12: vop_Decrement
public override bool vop_Decrement(out DataColumn c3)
{
int len = this._count;
Altaxo.Data.DoubleColumn c33 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c33._data[i] = this._data[i] - 1;
}
c33._count = len;
c3 = c33;
return true;
}
示例13: Min
public static Altaxo.Data.DoubleColumn Min(Altaxo.Data.DoubleColumn c1, Altaxo.Data.DoubleColumn c2)
{
int len = c1._count < c2._count ? c1._count : c2._count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3._data[i] = System.Math.Min(c1._data[i], c2._data[i]);
}
c3._count = len;
return c3;
}
示例14: Pow
public static Altaxo.Data.DoubleColumn Pow(Altaxo.Data.DoubleColumn c1, double c2)
{
int len = c1._count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3._data[i] = System.Math.Pow(c1._data[i], c2);
}
c3._count = len;
return c3;
}
示例15: Tanh
public static Altaxo.Data.DoubleColumn Tanh(Altaxo.Data.DoubleColumn c1)
{
int len = c1._count;
Altaxo.Data.DoubleColumn c3 = new Altaxo.Data.DoubleColumn(len);
for (int i = 0; i < len; i++)
{
c3._data[i] = System.Math.Tanh(c1._data[i]);
}
c3._count = len;
return c3;
}