Skip to content

Commit

Permalink
Merge pull request #4 from axiomhq/variance
Browse files Browse the repository at this point in the history
rename to variance
  • Loading branch information
lukasmalkmus authored Oct 22, 2021
2 parents b2a1405 + 1c1a31c commit 075def6
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/axiomhq/welford
local-prefixes: github.com/axiomhq/variance
govet:
check-shadowing: true
nolintlint:
Expand Down
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_name: welford
project_name: variance

builds:
- skip: true
Expand All @@ -16,13 +16,13 @@ changelog:
milestones:
- repo:
owner: axiomhq
name: welford
name: variance
close: true
fail_on_error: false

release:
github:
owner: axiomhq
name: welford
name: variance
prerelease: auto
name_template: "Welford v{{.Version}}"
name_template: "Variance v{{.Version}}"
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Welford - variance and standard deviation caluculation
# Variance and standard deviation caluculation using variance's algorithm

[![Go Reference][gopkg_badge]][gopkg]
[![Go Workflow][go_workflow_badge]][go_workflow]
Expand All @@ -19,7 +19,7 @@

## Introduction

Go implementation of Welford’s method for one-pass variance computation with
Go implementation of variance’s method for one-pass variance computation with
D. H. D. West improved methods.

### Highlights
Expand All @@ -41,30 +41,30 @@ D. H. D. West improved methods.
### Install using `go get`

```shell
go get github.com/axiomhq/welford
go get github.com/axiomhq/variance
```

### Install from source

```shell
git clone https://github.com/axiomhq/welford.git
cd welford
git clone https://github.com/axiomhq/variance.git
cd variance
make # Run code generators, linters, sanitizers and test suits
```

## Usage

```go
package welford_test
package variance_test

import (
"fmt"

"github.com/axiomhq/welford"
"github.com/axiomhq/variance"
)

func Example() {
stats1 := welford.New()
stats1 := variance.New()

stats1.Add(1)
stats1.Add(1)
Expand All @@ -82,7 +82,7 @@ func Example() {
stats1.NumDataValues(),
)

stats2 := welford.New()
stats2 := variance.New()
stats2.Add(3)

// Merge the values of stats2 into stats1.
Expand All @@ -109,15 +109,15 @@ See [LICENSE](LICENSE) for more information.

<!-- Badges -->

[gopkg]: https://pkg.go.dev/github.com/axiomhq/welford
[gopkg]: https://pkg.go.dev/github.com/axiomhq/variance
[gopkg_badge]: https://img.shields.io/badge/doc-reference-007d9c?logo=go&logoColor=white&style=flat-square
[go_workflow]: https://github.com/axiomhq/welford/actions/workflows/push.yml
[go_workflow_badge]: https://img.shields.io/github/workflow/status/axiomhq/welford/Push?style=flat-square&ghcache=unused
[coverage]: https://codecov.io/gh/axiomhq/welford
[coverage_badge]: https://img.shields.io/codecov/c/github/axiomhq/welford.svg?style=flat-square&ghcache=unused
[report]: https://goreportcard.com/report/github.com/axiomhq/welford
[report_badge]: https://goreportcard.com/badge/github.com/axiomhq/welford?style=flat-square&ghcache=unused
[release]: https://github.com/axiomhq/welford/releases/latest
[release_badge]: https://img.shields.io/github/release/axiomhq/welford.svg?style=flat-square&ghcache=unused
[go_workflow]: https://github.com/axiomhq/variance/actions/workflows/push.yml
[go_workflow_badge]: https://img.shields.io/github/workflow/status/axiomhq/variance/Push?style=flat-square&ghcache=unused
[coverage]: https://codecov.io/gh/axiomhq/variance
[coverage_badge]: https://img.shields.io/codecov/c/github/axiomhq/variance.svg?style=flat-square&ghcache=unused
[report]: https://goreportcard.com/report/github.com/axiomhq/variance
[report_badge]: https://goreportcard.com/badge/github.com/axiomhq/variance?style=flat-square&ghcache=unused
[release]: https://github.com/axiomhq/variance/releases/latest
[release_badge]: https://img.shields.io/github/release/axiomhq/variance.svg?style=flat-square&ghcache=unused
[license]: https://opensource.org/licenses/MIT
[license_badge]: https://img.shields.io/github/license/axiomhq/welford.svg?color=blue&style=flat-square&ghcache=unused
[license_badge]: https://img.shields.io/github/license/axiomhq/variance.svg?color=blue&style=flat-square&ghcache=unused
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/axiomhq/welford
module github.com/axiomhq/variance

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion tools.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build tools
// +build tools

package welford
package variance

import (
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
Expand Down
2 changes: 1 addition & 1 deletion welford.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package welford
package variance

import (
"encoding/binary"
Expand Down
8 changes: 4 additions & 4 deletions welford_example_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package welford_test
package variance_test

import (
"fmt"

"github.com/axiomhq/welford"
"github.com/axiomhq/variance"
)

func Example() {
stats1 := welford.New()
stats1 := variance.New()

stats1.Add(1)
stats1.Add(1)
Expand All @@ -25,7 +25,7 @@ func Example() {
stats1.NumDataValues(),
)

stats2 := welford.New()
stats2 := variance.New()
stats2.Add(3)

// Merge the values of stats2 into stats1.
Expand Down
2 changes: 1 addition & 1 deletion welford_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package welford
package variance

import (
"bytes"
Expand Down

0 comments on commit 075def6

Please sign in to comment.