| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
SharpPlot Tutorials General Tutorials Chart Samples Style Examples SharpLeaf Tutorials Document Layout Tutorials Text Flow Tutorials Table Tutorials Visual Glossaries SharpPlot Reference SharpPlot Class SharpPlot Properties SharpPlot Methods SharpPlot Structures SharpPlot Enumerations PageMap Class SharpLeaf Reference SharpLeaf Class SharpLeaf Properties SharpLeaf Methods Table Class Table Properties Table Methods SharpLeaf Structures FontType Structure ParagraphStyle Structure BoxStyle Structure SharpLeaf Enumerations DocumentLayout Classes DocumentLayout Class PageLayout Class PageElement Abstract Class Frame : PageElement Class TextBlock : PageElement Class ImageBlock : PageElement Class Box : PageElement Class Rule : PageElement Class Document Class DbUtil Class Download Release Notes Licensing |
Common Reference > VectorMath Class VectorMath ClassThis class provides a convenient library of static methods for transforming array data. public class VectorMath VectorMath Methods
ExampleTypically you may want to combine several variables in a Scatterplot, or draw a timeseries with a moving average. BP = new int[] {427,428,427,429,424,418,420,424,416,410,406,409,403,395,389,380,374,369, 356,362,383,383,382,393,386,398,382,379,380,394,385,381,388,396,404,393,400,413,417, 414,402,400,400,408,408,406,405,395,392,395,371,392,400,415,413,414,417,428,416,422, 429,416,414,401,416,406,407,416,421,411,412,406,405,408,414,407,408,414,412,406,395, 403,400,397,395,405,411,414,408}; pad = sp.MissingValue; mav12 = VectorMath.MovingAverage(BP,12,pad); mav20 = VectorMath.MovingAverage(BP,20,pad); sp.LineGraphStyle = LineGraphStyles.Markers|LineGraphStyles.NoLines; sp.SetMarkers(Marker.Dot); sp.DrawLineGraph(BP); sp.SetLineStyles(LineStyle.Solid); sp.LineGraphStyle = 0; sp.DrawLineGraph(new double[][]{mav12,mav20}); RequirementsNamespace: Causeway Assembly: SharpPlot (in sharpplot.dll) |