當前位置: 首頁>>代碼示例>>C#>>正文


C# Data.DoubleColumn類代碼示例

本文整理匯總了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;  
 }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:DoubleColumn.cs

示例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);
    }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:25,代碼來源:NonlinearFitController.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;  
 }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;
    }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:13,代碼來源:DoubleColumn.cs

示例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;
 } 
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;  
 }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;  
 }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:12,代碼來源:DoubleColumn.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:DoubleColumn.cs

示例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;
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:DoubleColumn.cs


注:本文中的Altaxo.Data.DoubleColumn類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。