Skip to content

Commit

Permalink
Added first function - test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelnehrer02 committed Dec 3, 2023
1 parent 76d4b21 commit 0e5fab4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ uuid = "688b0e7a-0122-4325-8669-5ff08899a59e"
authors = ["Jonathan Ehrenreich Laursen", "Samuel William Nehrer"]
version = "1.0.0-DEV"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[compat]
julia = "1"

Expand Down
6 changes: 5 additions & 1 deletion src/Actify.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module Actify

# Write your package code here.

export greet_your_package_name
include("functions.jl")


end

7 changes: 7 additions & 0 deletions src/functions.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using LinearAlgebra


"""Normalizes a Categorical probability distribution"""
function norm_dist(dist)
return dist ./ sum(dist, dims=1)
end
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Actify
using Test


@testset "Actify.jl" begin
# Write your tests here.
end

0 comments on commit 0e5fab4

Please sign in to comment.