Skip to content

Instantly share code, notes, and snippets.

View chrdavis's full-sized avatar

Chris Davis chrdavis

  • Microsoft
  • Seattle, WA
View GitHub Profile
<!-- Style and template for the button in the upper left corner of the DataGrid. -->
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Rectangle
x:Name="Border"
Fill="{DynamicResource ControlDefaultBackgroundBrush}"
SnapsToDevicePixels="True"
@chrdavis
chrdavis / quartriles.cs
Created March 28, 2019 20:00
C# code to detect outliers using the interquartile range rule
using System;
using System.Collections.Generic;
public class Quartriles
{
private double q1;
private double q2;
private double q3;
private double iqr;
private double max;